[Orxonox-commit 3222] r7913 - code/trunk/data/gui/scripts
landauf at orxonox.net
landauf at orxonox.net
Sat Feb 19 16:25:52 CET 2011
Author: landauf
Date: 2011-02-19 16:25:52 +0100 (Sat, 19 Feb 2011)
New Revision: 7913
Modified:
code/trunk/data/gui/scripts/GUITools.lua
Log:
fixed crash when pressing 'enter' in a menu (why does no one notice stuff like this?)
Modified: code/trunk/data/gui/scripts/GUITools.lua
===================================================================
--- code/trunk/data/gui/scripts/GUITools.lua 2011-02-18 22:54:13 UTC (rev 7912)
+++ code/trunk/data/gui/scripts/GUITools.lua 2011-02-19 15:25:52 UTC (rev 7913)
@@ -214,7 +214,7 @@
end
--enter
- if code == "28" then
+ if code == "28" and P.index >= 0 then
local item = list[P.index+1]
local child = item["button"]
child:setProperty("NormalImageRightEdge", string.sub(child:getProperty("NormalImageRightEdge"),1,-10) .. "Normal")
More information about the Orxonox-commit
mailing list