MOHAWK: LB's 'self' is case-insensitive

This commit is contained in:
Alyssa Milburn 2011-04-13 10:11:20 +02:00
parent 22046d2480
commit e000ed22d5

View File

@ -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");