mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed switch label with "default" case
This commit is contained in:
parent
f16b992a97
commit
b9f3ee867b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue