diff --git a/OpenRa.Game/MainWindow.cs b/OpenRa.Game/MainWindow.cs index 8464a55a04..9678208e7f 100644 --- a/OpenRa.Game/MainWindow.cs +++ b/OpenRa.Game/MainWindow.cs @@ -218,6 +218,7 @@ namespace OpenRa.Game effect.SetValue(scroll, scrollPos); KeyValuePair batch = Nth(drawBatches, n); + if (batch.Key != null) //foreach (KeyValuePair batch in drawBatches) { effect.SetTexture(texture, batch.Key.texture);