[Orxonox-commit 3117] r7811 - code/trunk/src/libraries/core

rgrieder at orxonox.net rgrieder at orxonox.net
Sun Dec 26 13:06:30 CET 2010


Author: rgrieder
Date: 2010-12-26 13:06:29 +0100 (Sun, 26 Dec 2010)
New Revision: 7811

Modified:
   code/trunk/src/libraries/core/GUIManager.cc
Log:
Fixed possible bug.

Modified: code/trunk/src/libraries/core/GUIManager.cc
===================================================================
--- code/trunk/src/libraries/core/GUIManager.cc	2010-12-26 11:55:09 UTC (rev 7810)
+++ code/trunk/src/libraries/core/GUIManager.cc	2010-12-26 12:06:29 UTC (rev 7811)
@@ -287,6 +287,8 @@
     const std::string& GUIManager::createInputState(const std::string& name, TriBool::Value showCursor, TriBool::Value useKeyboard, bool bBlockJoyStick)
     {
         InputState* state = InputManager::getInstance().createInputState(name);
+        if (!state)
+            return BLANKSTRING;
 
         /* Table that maps isFullScreen() and showCursor to mouseExclusive
         isFullscreen / showCursor | True  | False | Dontcare




More information about the Orxonox-commit mailing list