diff options
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/town.cpp | 2 |
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) { |