From 910db14ee8dbb46f6f9824227104c41d1bf95bd0 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 24 May 2014 23:13:19 +1200 Subject: [PATCH] Save the replay metadata block when quitting. --- OpenRA.Game/Game.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index 4f56b9cc42..93f081562d 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -501,6 +501,10 @@ namespace OpenRA Tick(orderManager); } + // Ensure that the active replay is properly saved + if (orderManager != null) + orderManager.Dispose(); + OnQuit(); }