diff options
author | Haruna <haru@dotalux.com> | 2015-01-05 21:35:48 +0100 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2015-01-05 21:35:48 +0100 |
commit | 095aaf5d3a6b108b59cb98b3c63ad836be65a4ed (patch) | |
tree | 4fa98033b59af09377134c77e1500138db078ae5 /src/map/status.c | |
parent | 3dc29e4a4ecdc2f474223461bd18d5beabcd9994 (diff) | |
parent | 046ed2c6e94bc3016351cadb6f4d792807acb63d (diff) | |
download | hercules-095aaf5d3a6b108b59cb98b3c63ad836be65a4ed.tar.gz hercules-095aaf5d3a6b108b59cb98b3c63ad836be65a4ed.tar.bz2 hercules-095aaf5d3a6b108b59cb98b3c63ad836be65a4ed.tar.xz hercules-095aaf5d3a6b108b59cb98b3c63ad836be65a4ed.zip |
Merge pull request #433 from 4144/viewdata
Add npcdb_checkid to npc interface.
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c index c0611f97b..7b4e6f274 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -6203,7 +6203,7 @@ void status_set_viewdata(struct block_list *bl, int class_) nullpo_retv(bl); if (mob->db_checkid(class_) || mob->is_clone(class_)) vd = mob->get_viewdata(class_); - else if (npcdb_checkid(class_) || (bl->type == BL_NPC && class_ == WARP_CLASS)) + else if (npc->db_checkid(class_) || (bl->type == BL_NPC && class_ == WARP_CLASS)) vd = npc->get_viewdata(class_); else if (homdb_checkid(class_)) vd = homun->get_viewdata(class_); |