Преглед изворни кода

lua: print the actual panic message before dumping a callstack.

legacy
Sam Hocevar sam пре 12 година
родитељ
комит
5d57b53eb0
1 измењених фајлова са 2 додато и 0 уклоњено
  1. +2
    -0
      src/world.cpp

+ 2
- 0
src/world.cpp Прегледај датотеку

@@ -33,6 +33,8 @@ class WorldData


static int LuaPanic(lua_State* L) static int LuaPanic(lua_State* L)
{ {
char const *message = lua_tostring(L, -1);
Log::Error("%s\n", message);
DebugAbort(); DebugAbort();
return 0; return 0;
} }


Loading…
Откажи
Сачувај