From 2f90b3a569c9627f0fa56ed282a33b596f0026f3 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sun, 9 Nov 2014 19:56:50 -0800 Subject: Add explicit check for mapless events --- src/map/npc-parse.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/npc-parse.cpp') diff --git a/src/map/npc-parse.cpp b/src/map/npc-parse.cpp index 2bd801d..8b47502 100644 --- a/src/map/npc-parse.cpp +++ b/src/map/npc-parse.cpp @@ -440,6 +440,7 @@ bool npc_load_script_none(ast::script::ScriptBody& body, ast::npc::ScriptNone& s dumb_ptr nd; nd.new_(); + nd->scr.event_needs_map = false; nd->name = script_none.name.data; @@ -535,6 +536,7 @@ bool npc_load_script_map_none(ast::script::ScriptBody& body, ast::npc::ScriptMap dumb_ptr nd; nd.new_(); + nd->scr.event_needs_map = false; nd->name = script_map_none.name.data; @@ -667,6 +669,7 @@ bool npc_load_script_map(ast::script::ScriptBody& body, ast::npc::ScriptMap& scr nd->scr.xs = xs; nd->scr.ys = ys; + nd->scr.event_needs_map = true; } nd->name = script_map.name.data; -- cgit v1.2.3-70-g09d2