diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/guildmanager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/guildmanager.cpp b/src/guildmanager.cpp index da11ece1b..62b478a5a 100644 --- a/src/guildmanager.cpp +++ b/src/guildmanager.cpp @@ -179,11 +179,12 @@ void GuildManager::updateList() while (it != it_end) { std::string name = *it; - if (name.size() > 1) + const size_t sz = name.size(); + if (sz > 1) { - const int status = atoi(name.substr(name.size() - 1).c_str()); + const int status = atoi(name.substr(sz - 1).c_str()); - name = name.substr(0, name.size() - 1); + name = name.substr(0, sz - 1); GuildMember *const m = guild->addMember(i, 0, name); if (m) { |