diff options
-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; |