aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/adl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/adl/adl.cpp')
-rw-r--r--engines/adl/adl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp
index c58f28ad31..c395fbb81b 100644
--- a/engines/adl/adl.cpp
+++ b/engines/adl/adl.cpp
@@ -94,7 +94,10 @@ Common::String AdlEngine::readString(Common::ReadStream &stream, byte until) {
while (1) {
byte b = stream.readByte();
- if (stream.eos() || stream.err() || b == until)
+ if (stream.eos() || stream.err())
+ error("Error reading string");
+
+ if (b == until)
break;
str += b;