- fixed bad index check in CanWipe.

This can be called with index == -1, which should check the first element of the intermission.
This commit is contained in:
Christoph Oelckers 2022-11-06 23:23:31 +01:00
parent c9de986dfb
commit fdeec5e0a5

View file

@ -371,7 +371,7 @@ class ScreenJobRunner : Object UI
bool CanWipe()
{
if (index < jobs.Size()) return !jobs[index].nowipe;
if (index < jobs.Size()) return !jobs[max(0, index)].nowipe;
return true;
}