mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-21 15:00:26 +02:00
Fixed switch label with "default" case
This commit is contained in:
1 file changed
+1
-1
@@ -1901,7 +1901,7 @@ bool ScriptVM::Switch(StateScript *stateScript, ScriptVariable& var)
|
||||
pos = stateScript->FindLabel(var.stringValue());
|
||||
|
||||
if (!pos) {
|
||||
pos = stateScript->FindLabel("");
|
||||
pos = stateScript->FindLabel(STRING_DEFAULT);
|
||||
|
||||
if (!pos) {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user