You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
Fix int(String) != int(int) conversion
This commit is contained in:
@@ -1192,7 +1192,7 @@ Variant::operator int64_t() const {
|
||||
case BOOL: return _data._bool ? 1 : 0;
|
||||
case INT: return _data._int;
|
||||
case REAL: return _data._real;
|
||||
case STRING: return operator String().to_int();
|
||||
case STRING: return operator String().to_int64();
|
||||
default: {
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user