summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 4198fdd55..3ee1f04c1 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -8122,6 +8122,12 @@ BUILDIN_FUNC(sc_end)
if( bl )
{
+ if( type == SC_ENDURE )
+ { //Required to terminate properly infinite endure.
+ struct status_change *sc = status_get_sc(bl);
+ struct status_change_entry *sce = sc?sc->data[type]:NULL;
+ if (sce) sce->val4 = 0;
+ }
if( type >= 0 )
status_change_end(bl, type, INVALID_TIMER);
else