aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorTorbjörn Andersson2014-07-20 16:01:36 +0200
committerTorbjörn Andersson2014-07-20 16:01:36 +0200
commit9ea138a3f91d31a59f2074c9e6af00b7d83c00dc (patch)
treed90a67fd032629c01435e63d80e98ba342259a97 /engines/mads
parent469eecb9eeb246b04693b275fcace8164d7adea4 (diff)
downloadscummvm-rg350-9ea138a3f91d31a59f2074c9e6af00b7d83c00dc.tar.gz
scummvm-rg350-9ea138a3f91d31a59f2074c9e6af00b7d83c00dc.tar.bz2
scummvm-rg350-9ea138a3f91d31a59f2074c9e6af00b7d83c00dc.zip
MADS: Initialise _lineIndex
Without this, Rex Nebular crashes on startup for me.
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/nebular/dialogs_nebular.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp
index 5a9cacddef..4e237ea52d 100644
--- a/engines/mads/nebular/dialogs_nebular.cpp
+++ b/engines/mads/nebular/dialogs_nebular.cpp
@@ -618,6 +618,7 @@ GameDialog::GameDialog(MADSEngine *vm) : FullScreenDialog(vm) {
_selectedLine = -1;
_dirFlag = false;
_textLineCount = 0;
+ _lineIndex = -1;
_screenId = 920;
chooseBackground();