From 8cd19670abef46d5bb0887d16f906a9c32f96f04 Mon Sep 17 00:00:00 2001 From: Trevius Date: Fri, 28 Nov 2014 20:30:35 -0600 Subject: [PATCH] Minor improvement to last commit. --- world/adventure.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/world/adventure.cpp b/world/adventure.cpp index 979347409..80b1dcaca 100644 --- a/world/adventure.cpp +++ b/world/adventure.cpp @@ -68,7 +68,6 @@ void Adventure::RemovePlayer(std::string character_name) std::list::iterator iter = players.begin(); while(iter != players.end()) { - if((*iter).compare(character_name) == 0) { int32 character_id = database.GetCharacterID(character_name.c_str()); @@ -76,8 +75,8 @@ void Adventure::RemovePlayer(std::string character_name) { database.RemoveClientFromInstance(instance_id, character_id); players.erase(iter); - return; } + return; } ++iter; }