mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-09 15:53:36 +00:00
(svn r23439) -Fix: Use the DEBUG macro to output the reason for a compile failure in info.nut instead of printing it directly to stderr
This commit is contained in:
parent
d60ec55983
commit
52c3e45cf1
@ -33,7 +33,7 @@ void Squirrel::CompileError(HSQUIRRELVM vm, const SQChar *desc, const SQChar *so
|
||||
engine->crashed = true;
|
||||
SQPrintFunc *func = engine->print_func;
|
||||
if (func == NULL) {
|
||||
scfprintf(stderr, _SC("%s"), buf);
|
||||
DEBUG(misc, 0, "[Squirrel] Compile error: %s", SQ2OTTD(buf));
|
||||
} else {
|
||||
(*func)(true, buf);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user