summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-12-06 15:09:02 +0000
committeryexo <yexo@openttd.org>2011-12-06 15:09:02 +0000
commit52c3e45cf122ee0d77b2b6ef9ee54892db1660ba (patch)
tree6ec7944c625b4646de4730d2d9f970260b27bc6a
parentd60ec559836e9a42ca58ff4176587f92f5262139 (diff)
downloadopenttd-52c3e45cf122ee0d77b2b6ef9ee54892db1660ba.tar.xz
(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
-rw-r--r--src/script/squirrel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp
index 9388c45b4..0465bd31c 100644
--- a/src/script/squirrel.cpp
+++ b/src/script/squirrel.cpp
@@ -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);
}