Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 19, 2010, 2:34:05 PM (15 years ago)
Author:
rgrieder
Message:

Fixed bug in SingleplayerMenu that happened when starting a level manually.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/gui/scripts/SingleplayerMenu.lua

    r6750 r6754  
    3030
    3131function P.SingleplayerStartButton_clicked(e)
    32     local choice = winMgr:getWindow("orxonox/SingleplayerLevelListbox"):getFirstSelectedItem()
     32    local choice = CEGUI.toListbox(winMgr:getWindow("orxonox/SingleplayerLevelListbox")):getFirstSelectedItem()
    3333    if choice then
    3434        orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
Note: See TracChangeset for help on using the changeset viewer.