summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-03 19:37:09 +0300
committerGitHub <noreply@github.com>2016-12-03 19:37:09 +0300
commite1453434af18b30119114077dfc52d27ad196cef (patch)
tree7f342a4bf53777ed740ce6600b0272bb09386e55 /src/map/npc.c
parent17420ee563282ba1791a77c55ede9d8f5f504ae5 (diff)
parent2150e64f1df5f5586274a1fde49029c4444db641 (diff)
downloadhercules-e1453434af18b30119114077dfc52d27ad196cef.tar.gz
hercules-e1453434af18b30119114077dfc52d27ad196cef.tar.bz2
hercules-e1453434af18b30119114077dfc52d27ad196cef.tar.xz
hercules-e1453434af18b30119114077dfc52d27ad196cef.zip
Merge pull request #1522 from HerculesWS/jobclass-mapid-cleanup
Job Class vs Job MapID cleanup
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 72c451ef9..a824d4216 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -4961,11 +4961,11 @@ int do_init_npc(bool minimal) {
//Stock view data for normal npcs.
memset(&npc_viewdb, 0, sizeof(npc_viewdb));
- npc_viewdb[0].class_ = INVISIBLE_CLASS; //Invisible class is stored here.
+ npc_viewdb[0].class = INVISIBLE_CLASS; //Invisible class is stored here.
for( i = 1; i < MAX_NPC_CLASS; i++ )
- npc_viewdb[i].class_ = i;
+ npc_viewdb[i].class = i;
for( i = MAX_NPC_CLASS2_START; i < MAX_NPC_CLASS2_END; i++ )
- npc_viewdb2[i - MAX_NPC_CLASS2_START].class_ = i;
+ npc_viewdb2[i - MAX_NPC_CLASS2_START].class = i;
npc->ev_db = strdb_alloc(DB_OPT_DUP_KEY|DB_OPT_RELEASE_DATA, EVENT_NAME_LENGTH);
npc->ev_label_db = strdb_alloc(DB_OPT_DUP_KEY|DB_OPT_RELEASE_DATA, NAME_LENGTH);