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()
|
public void LoadPreviousSave()
|
||||||
{
|
{
|
||||||
|
GameMain.LuaCs.Hook.Call("roundEnd");
|
||||||
AchievementManager.OnRoundEnded(this, roundInterrupted: true);
|
AchievementManager.OnRoundEnded(this, roundInterrupted: true);
|
||||||
Submarine.Unload();
|
Submarine.Unload();
|
||||||
SaveUtil.LoadGame(DataPath);
|
SaveUtil.LoadGame(DataPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user