[Orxonox-commit 3907] r8581 - code/branches/presentation/data/gui/scripts

dafrick at orxonox.net dafrick at orxonox.net
Wed May 25 21:42:30 CEST 2011


Author: dafrick
Date: 2011-05-25 21:42:29 +0200 (Wed, 25 May 2011)
New Revision: 8581

Modified:
   code/branches/presentation/data/gui/scripts/SheetManager.lua
Log:
Fixing bug in SheetManager.lua

Modified: code/branches/presentation/data/gui/scripts/SheetManager.lua
===================================================================
--- code/branches/presentation/data/gui/scripts/SheetManager.lua	2011-05-25 19:41:29 UTC (rev 8580)
+++ code/branches/presentation/data/gui/scripts/SheetManager.lua	2011-05-25 19:42:29 UTC (rev 8581)
@@ -219,7 +219,7 @@
     -- If the InGameConsole is active, ignore the ESC command.
     if bInGameConsoleClosed == true then
         bInGameConsoleClosed = false
-        if activeMenuSheets[1].sheet.name == "MainMenu" then
+        if activeMenuSheets.size > 0 and activeMenuSheets[1].sheet.name == "MainMenu" then
             return
         end
     end




More information about the Orxonox-commit mailing list