Browse Source

Fixed bugreport:6248 special ubber thanks to cookie.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16432 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 years ago
parent
commit
d82f9190a2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/map/status.c

+ 4 - 1
src/map/status.c

@@ -9507,7 +9507,10 @@ int status_change_timer(int tid, unsigned int tick, int id, intptr_t data)
 			map_freeblock_lock();
 			status_fix_damage(NULL, bl, sd||hp<status->hp?hp:status->hp-1, 1);
 			if( sc->data[type] ) {
-				if( status->hp == 1 ) break;
+				if( status->hp == 1 ) {
+					map_freeblock_unlock();
+					break;
+				}
 				sc_timer_next(10000 + tick, status_change_timer, bl->id, data);
 			}
 			map_freeblock_unlock();