From ef4ae4d281127a0b84a73ab034bd22d6281a09ed Mon Sep 17 00:00:00 2001 From: mekolat Date: Thu, 18 Jun 2015 01:56:31 -0500 Subject: implement puppet npcs --- src/map/npc-parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/npc-parse.cpp') diff --git a/src/map/npc-parse.cpp b/src/map/npc-parse.cpp index 0bd23a9..edfe4c9 100644 --- a/src/map/npc-parse.cpp +++ b/src/map/npc-parse.cpp @@ -92,7 +92,6 @@ void npc_delsrcfile(XString name) } } -static void register_npc_name(dumb_ptr nd) { earray types //= @@ -474,6 +473,7 @@ bool npc_load_script_none(ast::script::ScriptBody& body, ast::npc::ScriptNone& s nd->bl_type = BL::NPC; nd->npc_subtype = NpcSubtype::SCRIPT; + id_db.put(nd->bl_id, nd); // fix to get the oid in OnInit register_npc_name(nd); for (auto& pair : scriptlabel_db) -- cgit v1.2.3-70-g09d2