From 8e3da7ffedbe502c0f788edeaa82a88ff5fe2b37 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Tue, 27 Sep 2016 19:28:05 +0200 Subject: [PATCH] Changed mob parsing order (#1573) Fixes #1572 --- src/map/mob.c | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/src/map/mob.c b/src/map/mob.c index e0853bfffb..1fb84d5eda 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -4966,6 +4966,27 @@ static void mob_load(void) "/"DBIMPORT, }; + // First we parse all the possible monsters to add additional data in the second loop + if( db_use_sqldbs ){ + mob_read_sqldb(); + mob_read_sqlskilldb(); + }else{ + for(i=0; i