Make freelook hotkeys configurable.

This commit is contained in:
Rachel Bryk
2014-11-16 21:58:37 -05:00
parent 5143adac0e
commit ea11c446c2
6 changed files with 78 additions and 35 deletions

View File

@ -1771,7 +1771,8 @@ void CFrame::UpdateGUI()
{
if (GetCmdForHotkey(i) == -1)
continue;
GetMenuBar()->FindItem(GetCmdForHotkey(i))->SetItemLabel(GetMenuLabel(i));
if (GetMenuBar()->FindItem(GetCmdForHotkey(i)))
GetMenuBar()->FindItem(GetCmdForHotkey(i))->SetItemLabel(GetMenuLabel(i));
}
GetMenuBar()->FindItem(IDM_LOADSTATE)->Enable(Initialized);