aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-10 23:00:57 +0200
committerEugene Sandulenko2019-09-03 17:17:17 +0200
commit93155c6433ef7dd3c0f9752b161b2b53b3e72115 (patch)
treea57cff660febc039e92abc269c8f453c526a5c75 /engines
parent5cb46f624604f8d27e56c49e01511a10dfd0d810 (diff)
downloadscummvm-rg350-93155c6433ef7dd3c0f9752b161b2b53b3e72115.tar.gz
scummvm-rg350-93155c6433ef7dd3c0f9752b161b2b53b3e72115.tar.bz2
scummvm-rg350-93155c6433ef7dd3c0f9752b161b2b53b3e72115.zip
HDB: Fix Window::loadSaveFile()
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/window.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp
index 6e21555aa9..643a11f37f 100644
--- a/engines/hdb/window.cpp
+++ b/engines/hdb/window.cpp
@@ -334,13 +334,17 @@ void Window::loadSaveFile(Common::InSaveFile *in) {
debug(9, "STUB: Load Try Again data");
// Load Textout Info
- _textOutList.resize(in->readUint32LE());
- for (i = 0; (uint)i < _textOutList.size(); i++) {
- in->read(_textOutList[i]->text, 128);
- _textOutList[i]->x = in->readSint32LE();
- _textOutList[i]->y = in->readSint32LE();
- _textOutList[i]->timer = in->readUint32LE();
- _textOutList[i]->timer = g_system->getMillis() + 1000;
+ uint32 tsize = in->readUint32LE();
+ for (i = 0; (uint)i < tsize; i++) {
+ TOut *t = new TOut;
+
+ in->read(t->text, 128);
+ t->x = in->readSint32LE();
+ t->y = in->readSint32LE();
+ t->timer = in->readUint32LE();
+ t->timer = g_system->getMillis() + 1000;
+
+ _textOutList.push_back(t);
}
// Load Infobar Info