From d36dc41429883029402ed57d8064481f78348a9c Mon Sep 17 00:00:00 2001 From: ScottNZ Date: Sat, 8 Mar 2014 22:50:33 +1300 Subject: [PATCH 1/2] Fix GuardOrderGenerator's GetCursor crash. Closes #4821. --- OpenRA.Mods.RA/Guard.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.RA/Guard.cs b/OpenRA.Mods.RA/Guard.cs index 7fc5e7e9ee..2a329ae6e7 100644 --- a/OpenRA.Mods.RA/Guard.cs +++ b/OpenRA.Mods.RA/Guard.cs @@ -84,6 +84,9 @@ namespace OpenRA.Mods.RA public string GetCursor(World world, CPos xy, MouseInput mi) { + if (!subjects.Any()) + return null; + var multiple = subjects.Count() > 1; var canGuard = FriendlyGuardableUnits(world, mi) .Any(a => multiple || a != subjects.First()); From c777c621e0e3307b487512d524e7f20b09c0f02b Mon Sep 17 00:00:00 2001 From: ScottNZ Date: Sat, 8 Mar 2014 22:52:20 +1300 Subject: [PATCH 2/2] Update CHANGELOG for Guard OG fix --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index e776ac8067..84c96ece96 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -22,6 +22,7 @@ NEW: Removed the ability of commandos to plant C4 on walls. Order lines are now shown on unit selection. Fixed chat synchronization in replays. + Fixed the game sometimes crashing when deploying and activating the guard cursor at the same time. Dune 2000: Added the Atreides grenadier from the 1.06 patch. Added randomized tiles for Sand and Rock terrain.