Fix crash when losing fact with building ready to place

This commit is contained in:
Paul Chote
2010-09-08 03:22:05 +12:00
parent 108d7764ec
commit c8c96b9f6b

View File

@@ -81,6 +81,9 @@ namespace OpenRA.Mods.RA.Widgets
.Where(p => p.Actor.Owner == world.LocalPlayer)
.Select(p => p.Trait);
if (CurrentQueue != null && CurrentQueue.self.Destroyed)
CurrentQueue = null;
foreach (var queue in queues)
{
if (queue.AllItems().Count() > 0)