mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-20 18:42:17 +00:00
- Fixed crash with quicksave rotation enabled (read out of array bounds).
This commit is contained in:
parent
d25557597b
commit
8227e795c5
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ int FSavegameManager::InsertSaveNode(FSaveGameNode *node)
|
|||
{
|
||||
if (strstr(node->Filename.GetChars(),"quick"))
|
||||
{
|
||||
for (i; strstr(SaveGames[i]->Filename.GetChars(),"auto"); i++) {}
|
||||
for (i; i < SaveGames.Size() && strstr(SaveGames[i]->Filename.GetChars(),"auto"); i++) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue