I need to do some refactoring

This commit is contained in:
2016-08-26 00:11:54 +10:00
parent 64833f86da
commit b2aecc933a
2 changed files with 17 additions and 8 deletions
+1
View File
@@ -596,6 +596,7 @@ void ServerApplication::hQueryCharacterExists(CharacterPacket* const argPacket)
//respond with all character data
CharacterPacket newPacket;
//TODO: move this expensive lookup
for (auto& it : *characterMgr.GetContainer()) {
if (argPacket->roomIndex != -1 && it.second.GetRoomIndex() != argPacket->roomIndex) {
continue;