Browse Source

better Variant casting

Karroffel 8 years ago
parent
commit
1c5eeee512
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/core/Godot.hpp

+ 1 - 1
include/core/Godot.hpp

@@ -66,7 +66,7 @@ template<class T>
 struct _ArgCast {
 	static T _arg_cast(Variant a)
 	{
-		return (T) a;
+		return a.operator T();
 	}
 };