Browse Source

[GDNative] fixed a bug with ambiguous include paths

fixes #10071. The problem is that the json.h file includes the
local variant.h instead of the "absolute" core/variant.h
Karroffel 8 years ago
parent
commit
ab3b1e67c7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/gdnative/godot/dictionary.cpp

+ 2 - 1
modules/gdnative/godot/dictionary.cpp

@@ -29,9 +29,10 @@
 /*************************************************************************/
 #include <godot/dictionary.h>
 
+#include "core/variant.h"
+
 #include "core/dictionary.h"
 #include "core/io/json.h"
-#include "core/variant.h"
 
 #ifdef __cplusplus
 extern "C" {