Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 28, 2009, 8:35:54 PM (15 years ago)
Author:
rgrieder
Message:

Fixed (whyever it works now) bug in KeyBind menu that caused an error when removing a binding.
Also removed a GCC warning.

File:
1 edited

Legend:

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

    r6417 r6427  
    217217    local buttonNr = tonumber(match())
    218218
    219     orxonox.KeyBinderManager:getInstance():unbind(orxonox.KeyBinderManager:getInstance():getCurrent():getBinding(commandList[commandNr], buttonNr))
     219    local str = orxonox.KeyBinderManager:getInstance():getCurrent():getBinding(commandList[commandNr], buttonNr)
     220    orxonox.KeyBinderManager:getInstance():unbind(str)
    220221
    221222    P.callback()
Note: See TracChangeset for help on using the changeset viewer.