Ticket #3194: cleanup_rephrase.patch

File cleanup_rephrase.patch, 693 bytes (added by elexis, 7 years ago)

Rephrase the comment to make it more explicit which variable is outdated.

  • source/gui/CGUI.cpp

    InReaction CGUI::HandleEvent(const SDL_E  
    7373
    7474        std::map<CStr, std::vector<IGUIObject*> >::iterator it = m_HotkeyObjects.find(hotkey);
    7575        if (it != m_HotkeyObjects.end())
    7676            for (IGUIObject* const& obj : it->second)
    7777            {
    78                 // Update hotkey status before sending the event,
     78                // Update g_HotkeyStatus before sending the event,
    7979                // else the status will be outdated when processing the GUI event.
    8080                HotkeyInputHandler(ev);
    8181                ret = IN_HANDLED;
    8282
    8383                if (ev->ev.type == SDL_HOTKEYDOWN)