summaryrefslogtreecommitdiffstats
path: root/src/scripting/luascript.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-03-29 23:29:54 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-03-30 21:36:41 +0200
commite4baa92aae537921dd17873328a95ab17afcfdfc (patch)
treedb5cc3104df925677b6684da296f61aaacb6e6a4 /src/scripting/luascript.cpp
parent2f68a9da7121ab2adaa70ff257577ee596b4c4ee (diff)
downloadmanaserv-e4baa92aae537921dd17873328a95ab17afcfdfc.tar.gz
manaserv-e4baa92aae537921dd17873328a95ab17afcfdfc.tar.xz
manaserv-e4baa92aae537921dd17873328a95ab17afcfdfc.zip
Fixed Lua error reporting for NPC scripts
This was due to a naming conflict between the 'debug' function I had recently introduced and the 'debug' library provided by Lua. This caused problems when trying to use debug.traceback for printing a backtrace of the error. There's multiple ways to avoid the naming conflict. I opted for writing the related helper functions in all-caps. Also added an ERROR log function now. As Erik pointed out, there is no conflict anymore with Lua's 'error' function with the new naming style. Reviewed-by: Erik Schilling
Diffstat (limited to 'src/scripting/luascript.cpp')
0 files changed, 0 insertions, 0 deletions