From 1e091214a0f55def71889158da474472b4a8e2ea Mon Sep 17 00:00:00 2001 From: ultramage Date: Fri, 4 Jan 2008 19:39:02 +0000 Subject: 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 --- src/map/mob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3-60-g2f50