Skip to content

Commit

Permalink
- fixed bad index check in CanWipe.
Browse files Browse the repository at this point in the history
This can be called with index == -1, which should check the first element of the intermission.
  • Loading branch information
coelckers committed Nov 6, 2022
1 parent c9de986 commit fdeec5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/engine/screenjob.zs
Expand Up @@ -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;
}

Expand Down

0 comments on commit fdeec5e

Please sign in to comment.