aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-04-10 16:22:06 +0000
committerTorbjörn Andersson2005-04-10 16:22:06 +0000
commit9ab6b86c3a0caa08a9b8f2907638802af4ea26e5 (patch)
tree0ed656e94b3fa2e6f707ac76b84bdb4589d1b66a
parent8d2e73806ac032c82590dc434a21543320296af2 (diff)
downloadscummvm-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
-rw-r--r--sword2/logic.cpp10
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));