From 9e6b684089d6b3008e6d3c693f86d89d6420b1fc Mon Sep 17 00:00:00 2001 From: gepard1984 Date: Mon, 16 Jan 2012 15:40:58 +0000 Subject: Fixed returning pet to egg not cleaning up remaining skill timers, causing map-server crash. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15468 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index e4376b01d..9fd005c60 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1980,7 +1980,7 @@ int unit_remove_map_(struct block_list *bl, clr_type clrtype, const char* file, status_change_end(bl, SC_STOP, INVALID_TIMER); } - if (bl->type&BL_CHAR) { + if (bl->type&(BL_CHAR|BL_PET)) { skill_unit_move(bl,gettick(),4); skill_cleartimerskill(bl); } -- cgit v1.2.3-60-g2f50