From de11b9e901d1d1caa0634fad541f08f11c5781af Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 29 Apr 2009 00:26:07 -0500 Subject: [7730] Some optimizantion and code style. Author: zhenya --HG-- branch : trunk --- src/game/Debugcmds.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/game/Debugcmds.cpp') diff --git a/src/game/Debugcmds.cpp b/src/game/Debugcmds.cpp index 5b0f1cbebe3..2e3a256a214 100644 --- a/src/game/Debugcmds.cpp +++ b/src/game/Debugcmds.cpp @@ -412,7 +412,7 @@ bool ChatHandler::HandleDebugGetItemState(const char* args) { state_str = "The player has the following " + state_str + " items: "; SendSysMessage(state_str.c_str()); - for (uint8 i = PLAYER_SLOT_START; i < PLAYER_SLOT_END; i++) + for (uint8 i = PLAYER_SLOT_START; i < PLAYER_SLOT_END; ++i) { if(i >= BUYBACK_SLOT_START && i < BUYBACK_SLOT_END) continue; @@ -440,7 +440,7 @@ bool ChatHandler::HandleDebugGetItemState(const char* args) if (list_queue) { std::vector &updateQueue = player->GetItemUpdateQueue(); - for(size_t i = 0; i < updateQueue.size(); i++) + for(size_t i = 0; i < updateQueue.size(); ++i) { Item *item = updateQueue[i]; if(!item) continue; @@ -467,7 +467,7 @@ bool ChatHandler::HandleDebugGetItemState(const char* args) { bool error = false; std::vector &updateQueue = player->GetItemUpdateQueue(); - for (uint8 i = PLAYER_SLOT_START; i < PLAYER_SLOT_END; i++) + for (uint8 i = PLAYER_SLOT_START; i < PLAYER_SLOT_END; ++i) { if(i >= BUYBACK_SLOT_START && i < BUYBACK_SLOT_END) continue; @@ -583,7 +583,7 @@ bool ChatHandler::HandleDebugGetItemState(const char* args) } } - for(size_t i = 0; i < updateQueue.size(); i++) + for(size_t i = 0; i < updateQueue.size(); ++i) { Item *item = updateQueue[i]; if(!item) continue; -- cgit v1.2.3