From 0d0da95200f2d314b36c77c7959516de34e89839 Mon Sep 17 00:00:00 2001 From: Phillip Stephens <antidote.crk@gmail.com> Date: Sun, 20 Apr 2014 04:51:38 -0700 Subject: [PATCH] * Fix but in ZQuest, where gameString was being improperly assigned --- src/Athena/ZQuestFileReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Athena/ZQuestFileReader.cpp b/src/Athena/ZQuestFileReader.cpp index 35c0e8e..992fb74 100644 --- a/src/Athena/ZQuestFileReader.cpp +++ b/src/Athena/ZQuestFileReader.cpp @@ -62,15 +62,15 @@ ZQuestFile *ZQuestFileReader::read() if (version >= ZQUEST_VERSION_CHECK(2, 0, 0)) { - gameString = ((const char*)base::readBytes(0x0A), 0x0A); + gameString = std::string((const char*)base::readBytes(0x0A), 0x0A); for (size_t i = 0; i < ZQuestFile::gameStringList().size(); i++) { if (!ZQuestFile::gameStringList().at(i).substr(0, 0x0A).compare(gameString)) { gameString = ZQuestFile::gameStringList().at(i); + game = (ZQuestFile::Game)i; break; } - } BOM = base::readUint16(); checksum = base::readUint32();