aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-11-26 20:48:22 +0100
committerEugene Sandulenko2016-11-27 14:02:52 +0100
commit0ebe5347710353bdfe5f764b54be7328371653ca (patch)
treedcf49737522c8157f6272feeae87e67cc91591f4
parentcf5c6beb3a406383b401115222342b392262327a (diff)
downloadscummvm-rg350-0ebe5347710353bdfe5f764b54be7328371653ca.tar.gz
scummvm-rg350-0ebe5347710353bdfe5f764b54be7328371653ca.tar.bz2
scummvm-rg350-0ebe5347710353bdfe5f764b54be7328371653ca.zip
SCUMM: Fix dialog initialization
-rw-r--r--engines/scumm/dialogs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp
index 9b09f426ef..8acb6eb6de 100644
--- a/engines/scumm/dialogs.cpp
+++ b/engines/scumm/dialogs.cpp
@@ -510,7 +510,7 @@ ValueDisplayDialog::ValueDisplayDialog(const Common::String& label, int minVal,
int val, uint16 incKey, uint16 decKey)
: GUI::Dialog(0, 0, 0, 0),
_label(label), _min(minVal), _max(maxVal),
- _value(val), _incKey(incKey), _decKey(decKey) {
+ _value(val), _incKey(incKey), _decKey(decKey), _timer(0) {
assert(_min <= _value && _value <= _max);
}
@@ -566,7 +566,7 @@ void ValueDisplayDialog::open() {
}
SubtitleSettingsDialog::SubtitleSettingsDialog(ScummEngine *scumm, int value)
- : InfoDialog(scumm, ""), _value(value) {
+ : InfoDialog(scumm, ""), _value(value), _timer(0) {
}