summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/script-call.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/script-call.cpp b/src/map/script-call.cpp
index 83b6f24..0c67ba8 100644
--- a/src/map/script-call.cpp
+++ b/src/map/script-call.cpp
@@ -596,7 +596,12 @@ void run_func(ScriptState *st)
if (!st->stack->stack_datav[st->start].is<ScriptDataFuncRef>())
{
- PRINTF("run_func: not function and command! \n"_fmt);
+ dumb_ptr<npc_data> nd = map_id_is_npc(st->oid);
+ if(nd)
+ PRINTF("run_func: not a function or statement! @ %s\n"_fmt, nd->name);
+ else
+ PRINTF("run_func: not a function or statement! (no npc)\n"_fmt);
+
st->state = ScriptEndState::END;
abort();
}