aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2017-11-19 16:57:18 -0500
committerPaul Gilbert2017-11-19 16:57:18 -0500
commitdbba22e5710bbd63d83569cae6d873c7b0704745 (patch)
tree52544f42d55b75d81bb3b4aefd6e45c8020f97a0 /engines
parentfb9d813ef45d5fa3e70e6620f1ef8347a3cd0221 (diff)
downloadscummvm-rg350-dbba22e5710bbd63d83569cae6d873c7b0704745.tar.gz
scummvm-rg350-dbba22e5710bbd63d83569cae6d873c7b0704745.tar.bz2
scummvm-rg350-dbba22e5710bbd63d83569cae6d873c7b0704745.zip
XEEN: Fix display of multi-page town messages
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/town.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/town.cpp b/engines/xeen/town.cpp
index f15030503b..10a295c42a 100644
--- a/engines/xeen/town.cpp
+++ b/engines/xeen/town.cpp
@@ -1225,7 +1225,7 @@ bool TownMessage::execute(int portrait, const Common::String &name, const Common
name.c_str(), msgText.c_str());
// Count the number of words
- const char *msgEnd = w.writeString(msg.c_str());
+ const char *msgEnd = w.writeString(msg);
int wordCount = 0;
for (const char *msgP = msg.c_str(); msgP != msgEnd && *msgP; ++msgP) {