summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index f3cec671a..01679708b 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -3991,6 +3991,14 @@ void mob_reload(void)
mob_readdb_race();
}
+void mob_clear_spawninfo()
+{ //Clears spawn related information for a script reload.
+ int i;
+ for (i = 0; i < MAX_MOB_DB; i++)
+ if (mob_db_data[i])
+ memset(&mob_db_data[i]->spawn,0,sizeof(mob_db_data[i]->spawn));
+}
+
/*==========================================
* Circumference initialization of mob
*------------------------------------------*/