aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJohannes Schickel2013-10-02 00:06:58 +0200
committerJohannes Schickel2013-10-02 00:16:59 +0200
commit225a82355504d2c04d1a6b88b6627c445b12e329 (patch)
tree3d96c96547b89a690897b8fb7a1faba578491679 /gui
parent6ace85a84daca6c15aba1d788348ce8f86692501 (diff)
downloadscummvm-rg350-225a82355504d2c04d1a6b88b6627c445b12e329.tar.gz
scummvm-rg350-225a82355504d2c04d1a6b88b6627c445b12e329.tar.bz2
scummvm-rg350-225a82355504d2c04d1a6b88b6627c445b12e329.zip
GUI: Initialize PredictiveDialog::_predictiveResult.
This fixes garbage output when canceling the predictive dialog in AGI when nothing was entered.
Diffstat (limited to 'gui')
-rw-r--r--gui/predictivedialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/predictivedialog.cpp b/gui/predictivedialog.cpp
index c7d29468d8..41f6b103c4 100644
--- a/gui/predictivedialog.cpp
+++ b/gui/predictivedialog.cpp
@@ -144,6 +144,7 @@ PredictiveDialog::PredictiveDialog() : Dialog("Predictive") {
_currentWord.clear();
_wordNumber = 0;
_numMatchingWords = 0;
+ memset(_predictiveResult, 0, sizeof(_predictiveResult));
_lastbutton = kNoAct;
_mode = kModePre;