瀏覽代碼

fixed ArgCast again

Karroffel 8 年之前
父節點
當前提交
b6ca6a2d8e
共有 1 個文件被更改,包括 8 次插入0 次删除
  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;
+	}
+};
+