summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSkotlex <Skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-09-02 07:31:33 +0000
committerSkotlex <Skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-09-02 07:31:33 +0000
commit6dac9ce89876279f0c930f7b0ef5da801030e836 (patch)
treecbf9a0483eaec0785a6c3b8e8af3bb0b207762ec /src
parenta45d114dcf233eb0f932a5abc7c3cd229b82ceef (diff)
downloadhercules-6dac9ce89876279f0c930f7b0ef5da801030e836.tar.gz
hercules-6dac9ce89876279f0c930f7b0ef5da801030e836.tar.bz2
hercules-6dac9ce89876279f0c930f7b0ef5da801030e836.tar.xz
hercules-6dac9ce89876279f0c930f7b0ef5da801030e836.zip
- Fixed @reloadmobdb wiping out monster spawn information
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14951 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 3bfa7dfa7..c20672a13 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -3639,6 +3639,9 @@ static bool mob_parse_dbrow(char** str)
// Finally insert monster's data into the database.
if (mob_db_data[class_] == NULL)
mob_db_data[class_] = (struct mob_db*)aCalloc(1, sizeof(struct mob_db));
+ else
+ //Copy over spawn data
+ memcpy(&db->spawn, mob_db_data[class_]->spawn, sizeof(db->spawn));
memcpy(mob_db_data[class_], db, sizeof(struct mob_db));
return true;