- SW: Remove gi->FreeGameData() from game as its inside code wasn't freeing game data but level data already freed in gi->FreeLevelData().

* This was causing `GameMain()` to try to call `TerminateLevel()` after tile data had been freed, causing a hard stop.
* Fixes #464.
This commit is contained in:
Mitchell Richters 2021-07-20 20:11:29 +10:00
parent c5f63b95e5
commit d9a7465c08
2 changed files with 0 additions and 6 deletions

View file

@ -754,11 +754,6 @@ GameStats GameInterface::getStats()
return { pp->Kills, TotalKillable, pp->SecretsFound, LevelSecrets, PlayClock / 120, 0 };
}
void GameInterface::FreeGameData()
{
TerminateLevel();
}
void GameInterface::FreeLevelData()
{
TerminateLevel();

View file

@ -2237,7 +2237,6 @@ struct GameInterface : public ::GameInterface
void LoadGameTextures();
void loadPalette();
void clearlocalinputstate() override;
void FreeGameData() override;
void FreeLevelData() override;
bool GenerateSavePic() override;
void MenuSound(EMenuSounds snd) override;