diff IO/Mouse.cpp @ 2567:d569340b05ff

Few constants changed into enum values
author a.parshin
date Thu, 21 May 2015 01:50:59 +0200
parents 87e5590d034b
children dd36326a9994
line wrap: on
line diff
--- a/IO/Mouse.cpp	Wed May 20 21:05:07 2015 +0200
+++ b/IO/Mouse.cpp	Thu May 21 01:50:59 2015 +0200
@@ -772,6 +772,8 @@
           for ( v4 = pWindowList[v3]->pStartingPosActiveItem; v4 < v29; ++v4 )
           {
             pButton = pWindowList[v3]->pControlsHead;
+            if (!pButton)
+                continue;
             if ( v4 > 0 )
             {
               for ( v15 = v4; v15; --v15 )