Преглед на файлове

Fixed returning pet to egg not cleaning up remaining skill timers, causing map-server crash.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15468 54d463be-8e91-2dee-dedb-b68131a5f0ec
gepard1984 преди 13 години
родител
ревизия
1e9615181e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/map/unit.c

+ 1 - 1
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);
 	}