[Orxonox-commit 3853] r8529 - code/trunk/data/gui/scripts
landauf at orxonox.net
landauf at orxonox.net
Sun May 22 16:23:40 CEST 2011
Author: landauf
Date: 2011-05-22 16:23:40 +0200 (Sun, 22 May 2011)
New Revision: 8529
Modified:
code/trunk/data/gui/scripts/SheetManager.lua
Log:
fixed lua error when pressing ESC ingame after closing the console
Modified: code/trunk/data/gui/scripts/SheetManager.lua
===================================================================
--- code/trunk/data/gui/scripts/SheetManager.lua 2011-05-22 08:41:20 UTC (rev 8528)
+++ code/trunk/data/gui/scripts/SheetManager.lua 2011-05-22 14:23:40 UTC (rev 8529)
@@ -215,11 +215,11 @@
function keyESC()
-- HUGE, very HUGE hacks!
-
+
-- If the InGameConsole is active, ignore the ESC command.
if bInGameConsoleClosed == true then
bInGameConsoleClosed = false
- if activeMenuSheets[1].sheet.name == "MainMenu" then
+ if activeMenuSheets[1] and activeMenuSheets[1].sheet.name == "MainMenu" then
return
end
end
More information about the Orxonox-commit
mailing list