summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-06-14 00:44:48 +0200
committerHaru <haru@dotalux.com>2015-06-14 00:44:48 +0200
commit9a0b3ad4fb551028f593500698dd560f85cdda6c (patch)
treebcbaf80c1121dc9b16ab90ab124f1cec7fd800bd
parentfdc991a395732c8f10b568e8d63b51e1e95babcd (diff)
downloadhercules-9a0b3ad4fb551028f593500698dd560f85cdda6c.tar.gz
hercules-9a0b3ad4fb551028f593500698dd560f85cdda6c.tar.bz2
hercules-9a0b3ad4fb551028f593500698dd560f85cdda6c.tar.xz
hercules-9a0b3ad4fb551028f593500698dd560f85cdda6c.zip
Corrected an issue with Close Confine
- Fixes issue #539, thanks to @moguri85 - Introduced in 84785ca7, cbccd881 Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r--src/map/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index fd75ef81c..ffc534de9 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -9932,11 +9932,11 @@ int status_change_end_(struct block_list* bl, enum sc_type type, int tid, const
if (src && sc2 && sc2->data[SC_RG_CCONFINE_M]) {
//If status was already ended, do nothing.
//Decrease count
- if (--(sc2->data[SC_RG_CCONFINE_M]->val1) <= 0) //No more holds, free him up.
+ if (--(sc2->data[SC_RG_CCONFINE_M]->val2) <= 0) //No more holds, free him up.
status_change_end(src, SC_RG_CCONFINE_M, INVALID_TIMER);
}
}
- /* Fall through */
+ break;
case SC_RG_CCONFINE_M:
if (sce->val2 > 0) {
//Caster has been unlocked... nearby chars need to be unlocked.