From 8a613a903e6e80dae63de488b7d39a8dc16dcc78 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sun, 29 Sep 2013 10:58:08 -0700 Subject: Silence a warning for temporary NPCs --- src/map/npc.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map') diff --git a/src/map/npc.cpp b/src/map/npc.cpp index fa2603d..e859e2d 100644 --- a/src/map/npc.cpp +++ b/src/map/npc.cpp @@ -937,6 +937,8 @@ void register_npc_name(dumb_ptr nd) }; if (!nd->name) { + if (nd->npc_subtype == NpcSubtype::MESSAGE) + return; PRINTF("WARNING: npc with no name:\n%s @ %s,%d,%d\n", types[static_cast(nd->npc_subtype)], nd->bl_m->name_, nd->bl_x, nd->bl_y); -- cgit v1.2.3-70-g09d2