1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Added PowerState casting operator to Variant

Without it Godot does not build with PTRCALL_ENABLED
This commit is contained in:
Karroffel
2017-03-05 15:32:16 +01:00
parent 481e511082
commit 15838f3702
2 changed files with 7 additions and 0 deletions

View File

@@ -2178,6 +2178,11 @@ Variant::operator IP_Address() const {
return IP_Address( operator String() );
}
Variant::operator PowerState() const
{
return (PowerState) operator int();
}
Variant::Variant(bool p_bool) {
type=BOOL;