summaryrefslogtreecommitdiffstats
path: root/core/variant.h
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-03-05 15:32:16 +0100
committerKarroffel <therzog@mail.de>2017-03-05 15:32:16 +0100
commit15838f37028a19e7b78f2125d93051acbea13621 (patch)
tree0cca72312bc50ddbb5634431c5e1393f4e6ac420 /core/variant.h
parent481e511082fbe746a9436d2a79d42c62ba2b039a (diff)
downloadredot-engine-15838f37028a19e7b78f2125d93051acbea13621.tar.gz
Added PowerState casting operator to Variant
Without it Godot does not build with PTRCALL_ENABLED
Diffstat (limited to 'core/variant.h')
-rw-r--r--core/variant.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant.h b/core/variant.h
index f9ceca1ca0..1251189314 100644
--- a/core/variant.h
+++ b/core/variant.h
@@ -45,6 +45,7 @@
#include "path_db.h"
#include "simple_type.h"
#include "os/input_event.h"
+#include "os/power.h"
#include "color.h"
#include "face3.h"
#include "ref_ptr.h"
@@ -254,6 +255,7 @@ public:
operator Orientation() const;
operator IP_Address() const;
+ operator PowerState() const;
Variant(bool p_bool);