Fix memory leak that happens when you press retry in singleplayer

This commit is contained in:
Evil Factory
2025-12-23 20:47:40 -03:00
committed by NotAlwaysTrue
parent fc35d888fc
commit 81f44969ee

View File

@@ -408,6 +408,7 @@ namespace Barotrauma
public void LoadPreviousSave()
{
GameMain.LuaCs.Hook.Call("roundEnd");
AchievementManager.OnRoundEnded(this, roundInterrupted: true);
Submarine.Unload();
SaveUtil.LoadGame(DataPath);