fix a possible NRE

This commit is contained in:
Matthias Mailänder
2015-05-31 21:10:56 +02:00
parent f25300c703
commit 14a4b876e3

View File

@@ -61,7 +61,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var connection = orderManager.Connection as ReplayConnection;
if (connection != null && connection.TickCount != 0)
percentage.GetText = () => "({0}%)".F(orderManager.NetFrameNumber * 100 / connection.TickCount);
else
else if (timer != null)
timer.Bounds.Width += percentage.Bounds.Width;
}
}