From 3e02dc0e6884e6e7f9dfbf18aed251211ab65bb5 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 28 Nov 2017 14:45:41 +0100 Subject: Fix invisible NPCs (such as FAKE_NPC) showing up as Novice Use the correct view data (INVISIBLE_CLASS) when initializing new NPCs. The issue was introduced in #1893 Fixes #1916 Signed-off-by: Haru --- src/map/npc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/npc.c b/src/map/npc.c index 10ff4ebf2..d3dfb39d2 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2708,7 +2708,7 @@ struct npc_data *npc_create_npc(enum npc_subtype subtype, int m, int x, int y, u nd->area_size = AREA_SIZE + 1; nd->class_ = class_; nd->speed = 200; - nd->vd.class = 0; + nd->vd = npc_viewdb[0]; // Copy INVISIBLE_CLASS view data. Actual view data is set by npc->add_to_location() later. return nd; } -- cgit v1.2.3-60-g2f50