mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-08 16:52:01 +00:00
- 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:
parent
c9de986dfb
commit
fdeec5e0a5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue