Merge branch 'screenshot-slots-fix' into 'master'

Screenshot slots fix

Fix for this bug: https://mb.srb2.org/showthread.php?t=42508

The game should now print an error saying all 10000 slots have been used up. It was already there funnily enough, just someone goofed up in the code for finding the next screenshot name to use.

See merge request !170
This commit is contained in:
Monster Iestyn 2017-03-30 06:57:03 -04:00
commit 362c573567
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,7 @@ static const char *Newsnapshotfile(const char *pathname, const char *ext)
i += add * result;
if (add < 0 || add > 9999)
if (i < 0 || i > 9999)
return NULL;
}