From 15d6facdb927f9fe4c63d71f8d66de618b1bb295 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 25 Oct 2010 17:14:14 +1300 Subject: [PATCH] Fix crash in WorldInteractionControllerWidget. --- OpenRA.Game/Widgets/WorldInteractionControllerWidget.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Game/Widgets/WorldInteractionControllerWidget.cs b/OpenRA.Game/Widgets/WorldInteractionControllerWidget.cs index e3717d38f1..8c5177e28c 100644 --- a/OpenRA.Game/Widgets/WorldInteractionControllerWidget.cs +++ b/OpenRA.Game/Widgets/WorldInteractionControllerWidget.cs @@ -98,6 +98,7 @@ namespace OpenRA.Widgets var done = false; foreach (var o in orders) { + if (o.Subject.Destroyed) continue; foreach (var v in o.Subject.TraitsImplementing()) { if (Sound.PlayVoice(v.VoicePhraseForOrder(o.Subject, o), o.Subject, o.Subject.Owner.Country.Race))