Fix memory leak that happens when you press retry in singleplayer
This commit is contained in:
committed by
NotAlwaysTrue
parent
fc35d888fc
commit
6dd36a1575
@@ -408,6 +408,7 @@ namespace Barotrauma
|
||||
|
||||
public void LoadPreviousSave()
|
||||
{
|
||||
GameMain.LuaCs.Hook.Call("roundEnd");
|
||||
AchievementManager.OnRoundEnded(this, roundInterrupted: true);
|
||||
Submarine.Unload();
|
||||
SaveUtil.LoadGame(DataPath);
|
||||
|
||||
Reference in New Issue
Block a user