Explorar o código

fixed ArgCast again

Karroffel %!s(int64=8) %!d(string=hai) anos
pai
achega
b6ca6a2d8e
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      include/core/Godot.hpp

+ 8 - 0
include/core/Godot.hpp

@@ -78,6 +78,14 @@ struct _ArgCast<T*> {
 	}
 };
 
+template<>
+struct _ArgCast<Variant> {
+	static Variant _arg_cast(Variant a)
+	{
+		return a;
+	}
+};
+