and more performance tweaks

This commit is contained in:
DarthArgus
2014-10-27 21:28:46 -07:00
parent 7bcd3cb5bc
commit 7254d00e3c
25 changed files with 82 additions and 82 deletions
@@ -1299,7 +1299,7 @@ void ChatServer::destroyRoom(const std::string & roomName)
if (pos != roomName.npos)
{
std::string tmpRoomName = roomName.substr(0, pos);
char lastChar = tmpRoomName[strlen(tmpRoomName.c_str()) - 1];
char lastChar = tmpRoomName[tmpRoomName.length() - 1];
if (lastChar >= '0' && lastChar <= '9')
{
ChatServer::destroyRoom(tmpRoomName);