[Orxonox-commit 2037] r6754 - code/trunk/data/gui/scripts

rgrieder at orxonox.net rgrieder at orxonox.net
Mon Apr 19 14:34:06 CEST 2010


Author: rgrieder
Date: 2010-04-19 14:34:05 +0200 (Mon, 19 Apr 2010)
New Revision: 6754

Modified:
   code/trunk/data/gui/scripts/SingleplayerMenu.lua
Log:
Fixed bug in SingleplayerMenu that happened when starting a level manually.

Modified: code/trunk/data/gui/scripts/SingleplayerMenu.lua
===================================================================
--- code/trunk/data/gui/scripts/SingleplayerMenu.lua	2010-04-19 09:14:32 UTC (rev 6753)
+++ code/trunk/data/gui/scripts/SingleplayerMenu.lua	2010-04-19 12:34:05 UTC (rev 6754)
@@ -29,7 +29,7 @@
 end
 
 function P.SingleplayerStartButton_clicked(e)
-    local choice = winMgr:getWindow("orxonox/SingleplayerLevelListbox"):getFirstSelectedItem()
+    local choice = CEGUI.toListbox(winMgr:getWindow("orxonox/SingleplayerLevelListbox")):getFirstSelectedItem()
     if choice then
         orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
         orxonox.execute("startGame")




More information about the Orxonox-commit mailing list