瀏覽代碼

- Fixed a possible ers_entry corruption if you die from bleeding while under the effects of kaizel.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12063 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 17 年之前
父節點
當前提交
0f7c4f24f3
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/status.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2008/01/13
+	* Fixed a possible ers_entry corruption if you die from bleeding while
+	  under the effects of kaizel.
 	* Updated Safety wall so it does not blocks melee magic. [Skotlex]
 2008/01/12
 	* Another possible fix to ers/status_change crashing.

+ 1 - 1
src/map/status.c

@@ -6818,7 +6818,7 @@ int status_change_timer(int tid, unsigned int tick, int id, int data)
 	case SC_BLEEDING:
 		if (--(sce->val4) >= 0) {
 			status_fix_damage(NULL, bl, rand()%600 + 200, 0);
-			if (status_isdead(bl))
+			if (status_isdead(bl) || !sc->data[type]) //It is possible you revived from kaizel if killed.
 				break;
 			sc_timer_next(10000 + tick, status_change_timer, bl->id, data ); 
 			return 0;