From 4d407da3e6fbe76201189af0c218da5ea0fb2d71 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Thu, 12 Dec 2019 22:24:55 +0100 Subject: [PATCH] Fix a potential crash in PlayVoiceForOrders --- OpenRA.Game/VoiceExts.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/VoiceExts.cs b/OpenRA.Game/VoiceExts.cs index c8e3584763..302568b109 100644 --- a/OpenRA.Game/VoiceExts.cs +++ b/OpenRA.Game/VoiceExts.cs @@ -58,7 +58,7 @@ namespace OpenRA continue; var orderSubject = o.Subject; - if (orderSubject.Disposed) + if (orderSubject == null || orderSubject.Disposed) continue; foreach (var voice in orderSubject.TraitsImplementing())