From 761682b6254a3d43e65ff45e07683c61afa6f1e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 Mar 2012 16:54:22 +0300 Subject: Last part of fixes. --- src/being.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index 93199024f..75c215992 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -505,8 +505,8 @@ void Being::setSpeech(const std::string &text, int time) time = SPEECH_MIN_TIME; // Check for links - std::string::size_type start = mSpeech.find('['); - std::string::size_type e = mSpeech.find(']', start); + size_t start = mSpeech.find('['); + size_t e = mSpeech.find(']', start); while (start != std::string::npos && e != std::string::npos) { @@ -517,7 +517,7 @@ void Being::setSpeech(const std::string &text, int time) start = mSpeech.find('[', start + 1); } - std::string::size_type position = mSpeech.find('|'); + size_t position = mSpeech.find('|'); if (mSpeech[start + 1] == '@' && mSpeech[start + 2] == '@') { mSpeech.erase(e, 1); -- cgit v1.2.3-60-g2f50