summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-16 18:46:04 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-16 18:46:04 +0000
commit0ee010757a21e4b6eb59f40a7b8afdeca9d33591 (patch)
treeb37c3c13f779347a52c5ed30252d13a13f2cbb22 /src/map
parente86350cac7c62c5fd4868f9e3b0a088ff8645d43 (diff)
downloadhercules-0ee010757a21e4b6eb59f40a7b8afdeca9d33591.tar.gz
hercules-0ee010757a21e4b6eb59f40a7b8afdeca9d33591.tar.bz2
hercules-0ee010757a21e4b6eb59f40a7b8afdeca9d33591.tar.xz
hercules-0ee010757a21e4b6eb59f40a7b8afdeca9d33591.zip
Fixed bugreport:6248 special ubber thanks to cookie.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16432 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/status.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 1a47ef489..b637ae265 100644
--- a/src/map/status.c
+++ b/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();