From 5594f91d5bd25f1fd2ac4459483c9fc058d0de94 Mon Sep 17 00:00:00 2001 From: Beu Date: Wed, 19 Aug 2026 23:25:36 +0200 Subject: [PATCH] fix crash when last step duration is at 0 --- MatchManagerSuite/MatchManagerPickAndBan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MatchManagerSuite/MatchManagerPickAndBan.php b/MatchManagerSuite/MatchManagerPickAndBan.php index 50dc1b7..c2adda4 100644 --- a/MatchManagerSuite/MatchManagerPickAndBan.php +++ b/MatchManagerSuite/MatchManagerPickAndBan.php @@ -831,7 +831,7 @@ main() { if (Last_Timer_Update < Now) { Last_Timer_Update = Now + 100; - if (MatchManagerPickAndBan_State.startTimestamp != 0 && MatchManagerPickAndBan_State.endTimestamp != 0) { + if (MatchManagerPickAndBan_State.startTimestamp != 0 && MatchManagerPickAndBan_State.endTimestamp != 0 && MatchManagerPickAndBan_State.startTimestamp != MatchManagerPickAndBan_State.endTimestamp) { declare Integer RemainingTime = ML::Max(MatchManagerPickAndBan_State.endTimestamp - TL::ToInteger(TiL::GetCurrent()), 0); Label_Timer.Value = ""^ RemainingTime; declare Real Width = RemainingTime * 232. / (MatchManagerPickAndBan_State.endTimestamp - MatchManagerPickAndBan_State.startTimestamp);