diff options
Diffstat (limited to 'engines/mutationofjb/commands/saycommand.cpp')
-rw-r--r-- | engines/mutationofjb/commands/saycommand.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/mutationofjb/commands/saycommand.cpp b/engines/mutationofjb/commands/saycommand.cpp index 9448203911..a0c9c79bd6 100644 --- a/engines/mutationofjb/commands/saycommand.cpp +++ b/engines/mutationofjb/commands/saycommand.cpp @@ -93,7 +93,9 @@ bool SayCommandParser::parse(const Common::String &line, ScriptParseContext &par break; } } - startPos++; + if (startPos != currentLine.size()) { + startPos++; + } uint endPos; for (endPos = startPos; endPos < currentLine.size(); ++endPos) { @@ -120,7 +122,7 @@ bool SayCommandParser::parse(const Common::String &line, ScriptParseContext &par if (lineToSay.empty()) { lineToSay = talkStr; } else { - lineToSay = " " + talkStr; + lineToSay += " " + talkStr; } if (cont) { |