From 4f3df23e02153609a896d85e95778fd48aca8859 Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 26 Apr 2020 13:15:38 -0700 Subject: [PATCH] Don't clear telesummary/quicksummary if delete unsuccessful Otherwise the game will think the saves are gone even though they still exist. --- desktop_version/src/Game.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index d1e94c01..a18e32d5 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -7190,16 +7190,16 @@ void Game::deletequick() { if( remove( "qsave.vvv" ) != 0 ) printf("Error deleting file\n"); - - quicksummary = ""; + else + quicksummary = ""; } void Game::deletetele() { if( remove( "tsave.vvv" ) != 0 ) printf("Error deleting file\n"); - - telesummary = ""; + else + telesummary = ""; } void Game::swnpenalty()