diff options
author | lukaslw | 2014-07-30 21:58:36 +0200 |
---|---|---|
committer | lukaslw | 2014-07-30 21:58:36 +0200 |
commit | e81acaf68be0d8dc5388dc978972e2dbbce7799c (patch) | |
tree | f2aefae41f7c9f9552ea4077423932b6f4ba446f | |
parent | 464aea3c36ab7e7d12453cc732fc8042235744ac (diff) | |
download | scummvm-rg350-e81acaf68be0d8dc5388dc978972e2dbbce7799c.tar.gz scummvm-rg350-e81acaf68be0d8dc5388dc978972e2dbbce7799c.tar.bz2 scummvm-rg350-e81acaf68be0d8dc5388dc978972e2dbbce7799c.zip |
PRINCE: Mob exam texts loading - location 58 fix
-rw-r--r-- | engines/prince/mob.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/prince/mob.cpp b/engines/prince/mob.cpp index 27d7127ccd..7ed4f58103 100644 --- a/engines/prince/mob.cpp +++ b/engines/prince/mob.cpp @@ -62,10 +62,14 @@ bool Mob::loadFromStream(Common::SeekableReadStream &stream) { stream.seek(examTextOffset); _examText.clear(); - do { - c = stream.readByte(); + c = stream.readByte(); + if (c) { _examText += c; - } while (c != 255); + do { + c = stream.readByte(); + _examText += c; + } while (c != 255); + } stream.seek(pos + 32); return true; |