aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/window.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-02 18:35:14 +0200
committerEugene Sandulenko2019-09-03 17:17:08 +0200
commit6ffe0217097b07198952c7751b00f72aa83453d4 (patch)
tree6dc101e4e4aa57db58bd66b5eafe663698a0e92b /engines/hdb/window.cpp
parent6247f1ebec805205758d03d6107ae0ee3c4bce50 (diff)
downloadscummvm-rg350-6ffe0217097b07198952c7751b00f72aa83453d4.tar.gz
scummvm-rg350-6ffe0217097b07198952c7751b00f72aa83453d4.tar.bz2
scummvm-rg350-6ffe0217097b07198952c7751b00f72aa83453d4.zip
HDB: Reset _dialogInfo before each dialog.
This makes possible to close the choice dialog.
Diffstat (limited to 'engines/hdb/window.cpp')
-rw-r--r--engines/hdb/window.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp
index 5d5b7d3bda..a0902cfe7a 100644
--- a/engines/hdb/window.cpp
+++ b/engines/hdb/window.cpp
@@ -127,6 +127,8 @@ void Window::openDialog(const char *title, int tileIndex, const char *string, in
if (_dialogInfo.active)
return;
+ memset(&_dialogInfo, 0, sizeof(_dialogInfo));
+
_dialogInfo.tileIndex = tileIndex;
strcpy(_dialogInfo.title, title);
_dialogInfo.active = true;