diff options
author | Torbjörn Andersson | 2005-04-10 16:22:06 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-04-10 16:22:06 +0000 |
commit | 9ab6b86c3a0caa08a9b8f2907638802af4ea26e5 (patch) | |
tree | 0ed656e94b3fa2e6f707ac76b84bdb4589d1b66a /sword2 | |
parent | 8d2e73806ac032c82590dc434a21543320296af2 (diff) | |
download | scummvm-rg350-9ab6b86c3a0caa08a9b8f2907638802af4ea26e5.tar.gz scummvm-rg350-9ab6b86c3a0caa08a9b8f2907638802af4ea26e5.tar.bz2 scummvm-rg350-9ab6b86c3a0caa08a9b8f2907638802af4ea26e5.zip |
Initialise _currentRunList to avoid failed assertion when quitting the
game before it has been initialised the normal way.
svn-id: r17519
Diffstat (limited to 'sword2')
-rw-r--r-- | sword2/logic.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sword2/logic.cpp b/sword2/logic.cpp index 651dcd039e..5922d92830 100644 --- a/sword2/logic.cpp +++ b/sword2/logic.cpp @@ -31,10 +31,12 @@ namespace Sword2 { Logic::Logic(Sword2Engine *vm) : - _vm(vm), _kills(0), _smackerLeadIn(0), _smackerLeadOut(0), - _sequenceTextLines(0), _speechTime(0), _animId(0), _speechAnimType(0), - _leftClickDelay(0), _rightClickDelay(0), _defaultResponseId(0), - _officialTextNumber(0), _speechTextBlocNo(0), _choosing(false) { + _vm(vm), _kills(0), _currentRunList(0), _smackerLeadIn(0), + _smackerLeadOut(0), _sequenceTextLines(0), _speechTime(0), _animId(0), + _speechAnimType(0), _leftClickDelay(0), _rightClickDelay(0), + _defaultResponseId(0), _officialTextNumber(0), _speechTextBlocNo(0), + _choosing(false) { + _scriptVars = NULL; memset(_subjectList, 0, sizeof(_subjectList)); memset(_eventList, 0, sizeof(_eventList)); |