Browse Source

- Fixed (likely) deleting homs from the menu causing a double free'd error.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9362 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 18 years ago
parent
commit
02330c9d81
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/mercenary.c

+ 1 - 1
src/map/mercenary.c

@@ -114,7 +114,7 @@ int merc_hom_delete(struct homun_data *hd, int emote)
 	// Send homunculus_dead to client
 	// Send homunculus_dead to client
 	hd->homunculus.hp = 0;
 	hd->homunculus.hp = 0;
 	clif_hominfo(sd, hd, 0);
 	clif_hominfo(sd, hd, 0);
-	return unit_free(&hd->bl,0);
+	return unit_remove_map(&hd->bl,0);
 }
 }
 
 
 int merc_hom_calc_skilltree(struct homun_data *hd)
 int merc_hom_calc_skilltree(struct homun_data *hd)