TINSEL: Fix another Clang analyzer warning
Whether or not SaveFailure() can delete the save file, we want to invalidate the save name because it probably only lives on the stack so the pointer will become invalid once DoSave() has ended.
This commit is contained in:
parent
5e304618bf
commit
304ac2a7c4
1 changed files with 1 additions and 1 deletions
|
@ -540,8 +540,8 @@ static void SaveFailure(Common::OutSaveFile *f) {
|
|||
if (f) {
|
||||
delete f;
|
||||
_vm->getSaveFileMan()->removeSavefile(g_SaveSceneName);
|
||||
g_SaveSceneName = NULL; // Invalidate save name
|
||||
}
|
||||
g_SaveSceneName = NULL; // Invalidate save name
|
||||
GUI::MessageDialog dialog(_("Failed to save game state to file."));
|
||||
dialog.runModal();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue