Permalink
Browse files

Merge pull request #2239 from guilherme-gm/201810-assertion_berserk

Fixes an assertion error when sc_end is called for SC_BERSERK
  • Loading branch information...
MishimaHaruna committed Oct 7, 2018
2 parents d6c3435 + fb49ae7 commit cbcc972537cb45efc965afc6a9ed628a9775864e
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/map/script.c
View
@@ -12268,7 +12268,9 @@ static BUILDIN(sc_end)
}
//This should help status_change_end force disabling the SC in case it has no limit.
sce->val1 = sce->val2 = sce->val3 = sce->val4 = 0;
if (type != SC_BERSERK)
sce->val1 = 0; // SC_BERSERK requires skill_lv that's stored in sce->val1 when being removed [KirieZ]
sce->val2 = sce->val3 = sce->val4 = 0;
status_change_end(bl, (sc_type)type, INVALID_TIMER);
}
else

0 comments on commit cbcc972

Please sign in to comment.