From 52c3e45cf122ee0d77b2b6ef9ee54892db1660ba Mon Sep 17 00:00:00 2001 From: yexo Date: Tue, 6 Dec 2011 15:09:02 +0000 Subject: (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 --- src/script/squirrel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3-54-g00ecf