You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user