mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
MOHAWK: LB's 'self' is case-insensitive
This commit is contained in:
parent
22046d2480
commit
e000ed22d5
@ -407,7 +407,7 @@ void LBCode::parseMain() {
|
||||
Common::String varname = _currValue.string;
|
||||
debugN("%s", varname.c_str());
|
||||
nextToken();
|
||||
if (varname == "self") {
|
||||
if (varname.equalsIgnoreCase("self")) {
|
||||
_stack.push(LBValue(_currSource));
|
||||
if (_currToken == kTokenAssign)
|
||||
error("attempted assignment to self");
|
||||
|
Loading…
x
Reference in New Issue
Block a user