mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
This commit is contained in:
parent
b133328737
commit
db3b086a52
@ -182,12 +182,12 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (SQChar *compilererror) {
|
catch (const std::string &compilererror) {
|
||||||
if(_raiseerror && _ss(_vm)->_compilererrorhandler) {
|
if(_raiseerror && _ss(_vm)->_compilererrorhandler) {
|
||||||
_ss(_vm)->_compilererrorhandler(_vm, compilererror, type(_sourcename) == OT_STRING?_stringval(_sourcename):"unknown",
|
_ss(_vm)->_compilererrorhandler(_vm, compilererror.c_str(), type(_sourcename) == OT_STRING ? _stringval(_sourcename) : "unknown",
|
||||||
_lex._currentline, _lex._currentcolumn);
|
_lex._currentline, _lex._currentcolumn);
|
||||||
}
|
}
|
||||||
_vm->_lasterror = SQString::Create(_ss(_vm), compilererror, -1);
|
_vm->_lasterror = SQString::Create(_ss(_vm), compilererror.c_str(), -1);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user