Browse Source

fixed PowerState enum cast

Quite a while ago I made a commit (131631b) where I did a weird
thing to fix compilation with PTRCALL_ENABLED. And I couldn't
sleep because of this after all these months. So here is the
proper version.
Karroffel 8 years ago
parent
commit
6bda2876f1
2 changed files with 2 additions and 1 deletions
  1. 0 1
      core/method_ptrcall.h
  2. 2 0
      core/os/os.h

+ 0 - 1
core/method_ptrcall.h

@@ -115,7 +115,6 @@ MAKE_PTRARG(PoolVector2Array);
 MAKE_PTRARG(PoolVector3Array);
 MAKE_PTRARG(PoolColorArray);
 MAKE_PTRARG(Variant);
-MAKE_PTRARG(PowerState);
 
 //this is for Object
 

+ 2 - 0
core/os/os.h

@@ -413,4 +413,6 @@ public:
 	virtual ~OS();
 };
 
+VARIANT_ENUM_CAST(PowerState);
+
 #endif