浏览代码

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