diff options
Diffstat (limited to 'crawl-ref/source/mapmark.cc')
-rw-r--r-- | crawl-ref/source/mapmark.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mapmark.cc b/crawl-ref/source/mapmark.cc index ecbed091e3..269b973cbf 100644 --- a/crawl-ref/source/mapmark.cc +++ b/crawl-ref/source/mapmark.cc @@ -170,7 +170,7 @@ map_lua_marker::map_lua_marker(const lua_datum &fn) { lua_stack_cleaner clean(dlua); fn.push(); - if (!dlua.callfn("dgn_run_map", 1, 1)) + if (fn.is_function() && !dlua.callfn("dgn_run_map", 1, 1)) mprf(MSGCH_ERROR, "lua_marker exec error: %s", dlua.error.c_str()); else check_register_table(); |