Skip to content

Commit f63957c

Browse files
committed
Update Main.hx
1 parent 8ec797e commit f63957c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/Main.hx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -950,11 +950,11 @@ class CommandPrompt
950950
default:
951951
typedValue = newValue;
952952

953-
Reflect.setProperty(obj, fieldName, typedValue);
954-
print("Global Variable: " + args[0] + ", Type: " + Type.typeof(currentValue) + ", New Value: " + typedValue);
955-
} catch (e:Dynamic) {
956-
print("Error: Unable to set variable properly.");
957-
}
953+
Reflect.setProperty(obj, fieldName, typedValue);
954+
print("Global Variable: " + args[0] + ", Type: " + Type.typeof(currentValue) + ", New Value: " + typedValue);
955+
}}catch (e:Dynamic) {
956+
print("Error: Unable to set variable properly.");
957+
}
958958
} else {
959959
print("Error: globalVar requires exactly two arguments.");
960960
}

0 commit comments

Comments
 (0)