Browse Source

Fix crash when no mouse cursor in UI.

Lasse Öörni 15 years ago
parent
commit
10d59b4c92
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/UI/UI.cpp

+ 1 - 1
Engine/UI/UI.cpp

@@ -219,7 +219,7 @@ void UI::update(float timeStep)
     }
     }
     
     
     // If no drag, reset cursor shape for next frame
     // If no drag, reset cursor shape for next frame
-    if (!mMouseDragElement)
+    if ((mCursor) && (!mMouseDragElement))
         mCursor->setShape(CS_NORMAL);
         mCursor->setShape(CS_NORMAL);
 }
 }