summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-04 19:39:02 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-04 19:39:02 +0000
commit1e091214a0f55def71889158da474472b4a8e2ea (patch)
tree9afbdb897b90ac6aef0db49a5cd27442b1d09740 /src/map
parent60de54af92abdda979ccce978a8c6c031f468f61 (diff)
downloadhercules-1e091214a0f55def71889158da474472b4a8e2ea.tar.gz
hercules-1e091214a0f55def71889158da474472b4a8e2ea.tar.bz2
hercules-1e091214a0f55def71889158da474472b4a8e2ea.tar.xz
hercules-1e091214a0f55def71889158da474472b4a8e2ea.zip
Fixed a bad allocation line, which in my case resulted in trashing several ingame objects when doing @reloadmobdb.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12013 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 8bd7a86c5..900cc7da1 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -4064,7 +4064,7 @@ void mob_clear_spawninfo()
int do_init_mob(void)
{ //Initialize the mob database
memset(mob_db_data,0,sizeof(mob_db_data)); //Clear the array
- mob_db_data[0] = aCalloc(1, sizeof (struct mob_data)); //This mob is used for random spawns
+ mob_db_data[0] = aCalloc(1, sizeof (struct mob_db)); //This mob is used for random spawns
mob_makedummymobdb(0); //The first time this is invoked, it creates the dummy mob
item_drop_ers = ers_new(sizeof(struct item_drop));
item_drop_list_ers = ers_new(sizeof(struct item_drop_list));