summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp6
1 files changed, 3 insertions, 3 deletions
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);