- 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
This commit is contained in:
skotlex 2008-01-13 03:08:36 +00:00
parent 418f5b1059
commit 0f7c4f24f3
2 changed files with 3 additions and 1 deletions

View File

@ -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. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2008/01/13 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] * Updated Safety wall so it does not blocks melee magic. [Skotlex]
2008/01/12 2008/01/12
* Another possible fix to ers/status_change crashing. * Another possible fix to ers/status_change crashing.

View File

@ -6818,7 +6818,7 @@ int status_change_timer(int tid, unsigned int tick, int id, int data)
case SC_BLEEDING: case SC_BLEEDING:
if (--(sce->val4) >= 0) { if (--(sce->val4) >= 0) {
status_fix_damage(NULL, bl, rand()%600 + 200, 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; break;
sc_timer_next(10000 + tick, status_change_timer, bl->id, data ); sc_timer_next(10000 + tick, status_change_timer, bl->id, data );
return 0; return 0;