aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/adl/adl_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/adl/adl_v2.cpp b/engines/adl/adl_v2.cpp
index 39cf0a7583..dba6b61346 100644
--- a/engines/adl/adl_v2.cpp
+++ b/engines/adl/adl_v2.cpp
@@ -176,7 +176,7 @@ void AdlEngine_v2::printString(const Common::String &str) {
byte pos = 0;
while (true) {
- while (pos != endPos && pos != s.size()) {
+ while (pos <= endPos && pos != s.size()) {
s.setChar(APPLECHAR(s[pos]), pos);
++pos;
}