From 6c4eff4dfcb883df81d415bb57377da7bf239cc1 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 4 Jun 2016 23:27:14 -0400 Subject: TITANIC: Fix loading of JRQUOTES --- engines/titanic/true_talk/tt_quotes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/titanic/true_talk/tt_quotes.cpp') diff --git a/engines/titanic/true_talk/tt_quotes.cpp b/engines/titanic/true_talk/tt_quotes.cpp index 7b98558d63..8e9978bbb9 100644 --- a/engines/titanic/true_talk/tt_quotes.cpp +++ b/engines/titanic/true_talk/tt_quotes.cpp @@ -27,7 +27,7 @@ namespace Titanic { TTquotes::TTquotes() { - Common::fill(&_array[0], &_array[256], 0); + Common::fill(&_tags[0], &_tags[256], 0); _dataP = nullptr; _dataSize = 0; _field544 = 0; @@ -38,14 +38,14 @@ TTquotes::~TTquotes() { } void TTquotes::load(const CString &name) { - Common::SeekableReadStream *r = g_vm->_filesManager->getResource("TEXT/JRQuotes.txt"); + Common::SeekableReadStream *r = g_vm->_filesManager->getResource(name); size_t size = r->readUint32LE(); _dataSize = _field544 = size; _dataP = new char[size + 0x10]; for (int idx = 0; idx < 256; ++idx) - _array[idx] = r->readUint32LE(); + _tags[idx] = r->readUint32LE(); for (int charIdx = 0; charIdx < 26; ++charIdx) { TTquotesLetter &letter = _alphabet[charIdx]; -- cgit v1.2.3