summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index e2495bc0..dc36adc2 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -194,8 +194,10 @@ void Being::setSpeech(const std::string &text, Uint32 time)
std::string::size_type position = mSpeech.find('|');
if (mSpeech[start + 1] == '@' && mSpeech[start + 2] == '@')
+ {
mSpeech.erase(end, 1);
- mSpeech.erase(start, (position - start) + 1);
+ mSpeech.erase(start, (position - start) + 1);
+ }
position = mSpeech.find('@');
while (position != std::string::npos)