1.1 --- a/Server/MainForm.cs Mon Feb 09 20:13:28 2015 +0100
1.2 +++ b/Server/MainForm.cs Mon Feb 09 22:47:13 2015 +0100
1.3 @@ -246,6 +246,11 @@
1.4 if (iDisplay.IsOpen() && iNetworkManager.NetworkListManager.IsConnected && iUpdateCountSinceLastNetworkAnimation==0)
1.5 {
1.6 int iconCount=iDisplay.IconCount(Display.TMiniDisplayIconType.EMiniDisplayIconNetworkSignal);
1.7 + if (iconCount <= 0)
1.8 + {
1.9 + //Prevents div by zero and other undefined behavior
1.10 + return;
1.11 + }
1.12 iLastNetworkIconIndex++;
1.13 iLastNetworkIconIndex = iLastNetworkIconIndex % (iconCount*2);
1.14 for (int i=0;i<iconCount;i++)