You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Made Variant::NIL printable as "Null". Please everyone be on the lookout of bugs related to assigning an empty variant to a string, and expecting it to be not empty!
This commit is contained in:
@@ -1502,7 +1502,7 @@ Variant::operator String() const {
|
||||
|
||||
switch( type ) {
|
||||
|
||||
case NIL: return "";
|
||||
case NIL: return "Null";
|
||||
case BOOL: return _data._bool ? "True" : "False";
|
||||
case INT: return String::num(_data._int);
|
||||
case REAL: return String::num(_data._real);
|
||||
|
||||
Reference in New Issue
Block a user