summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-11-28 15:25:30 +0100
committerGitHub <noreply@github.com>2017-11-28 15:25:30 +0100
commit45db6ef0f27295b7c146c813b4f161e87b7cdaa4 (patch)
tree72852372e3f0be11f3f346dedde72b98e8eadeb9
parent1418831c609781901fa994a27ae944781cc20f28 (diff)
parent3e02dc0e6884e6e7f9dfbf18aed251211ab65bb5 (diff)
downloadhercules-45db6ef0f27295b7c146c813b4f161e87b7cdaa4.tar.gz
hercules-45db6ef0f27295b7c146c813b4f161e87b7cdaa4.tar.bz2
hercules-45db6ef0f27295b7c146c813b4f161e87b7cdaa4.tar.xz
hercules-45db6ef0f27295b7c146c813b4f161e87b7cdaa4.zip
Merge pull request #1918 from MishimaHaruna/npc-invisible-class
Fix invisible NPCs (such as FAKE_NPC) showing up as Novice
-rw-r--r--src/map/npc.c2
1 files changed, 1 insertions, 1 deletions
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;
}