Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8529 for code/trunk/data/gui


Ignore:
Timestamp:
May 22, 2011, 4:23:40 PM (14 years ago)
Author:
landauf
Message:

fixed lua error when pressing ESC ingame after closing the console

File:
1 edited

Legend:

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

    r8485 r8529  
    216216function keyESC()
    217217    -- HUGE, very HUGE hacks!
    218    
     218
    219219    -- If the InGameConsole is active, ignore the ESC command.
    220220    if bInGameConsoleClosed == true then
    221221        bInGameConsoleClosed = false
    222         if activeMenuSheets[1].sheet.name == "MainMenu" then
     222        if activeMenuSheets[1] and activeMenuSheets[1].sheet.name == "MainMenu" then
    223223            return
    224224        end
Note: See TracChangeset for help on using the changeset viewer.