diff options
author | Eugene Sandulenko | 2019-07-02 18:35:14 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:08 +0200 |
commit | 6ffe0217097b07198952c7751b00f72aa83453d4 (patch) | |
tree | 6dc101e4e4aa57db58bd66b5eafe663698a0e92b | |
parent | 6247f1ebec805205758d03d6107ae0ee3c4bce50 (diff) | |
download | scummvm-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.
-rw-r--r-- | engines/hdb/window.cpp | 2 |
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; |