Ticket #9224: 0001-PARALLACTION-fix-crash-for-amiga-non-multilingual-ve.patch

File 0001-PARALLACTION-fix-crash-for-amiga-non-multilingual-ve.patch, 1.1 KB (added by fuzzie, 12 years ago)
  • engines/parallaction/gui_ns.cpp

    From 3f3f14b08e2b55ecc916068c3ba95e028acbf0dc Mon Sep 17 00:00:00 2001
    From: Alyssa Milburn <fuzzie@fuzzie.org>
    Date: Sun, 17 Oct 2010 22:04:12 +0200
    Subject: [PATCH 1/2] PARALLACTION: fix crash for amiga non-multilingual versions of NS
    
    A variable wasn't being initialised in the case used for these versions.
    ---
     engines/parallaction/gui_ns.cpp |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/engines/parallaction/gui_ns.cpp b/engines/parallaction/gui_ns.cpp
    index 9f50236..51d3ba5 100644
    a b public:  
    118118        ChooseLanguageInputState_NS(Parallaction *vm, MenuInputHelper *helper) : MenuInputState("chooselanguage", helper), _vm(vm) {
    119119                _allowChoice = false;
    120120                _nextState = "selectgame";
     121                _label = 0;
    121122
    122123                _dosLanguageSelectBlocks[0] = Common::Rect(  80, 110, 128, 180 );       // Italian
    123124                _dosLanguageSelectBlocks[1] = Common::Rect( 129,  85, 177, 155 );       // French
    public:  
    147148                        _blocks = _dosLanguageSelectBlocks;
    148149                }
    149150
    150                 _label = 0;
    151151                _language = -1;
    152152                _allowChoice = true;
    153153        }