diff options
author | Machiavelli <none@none> | 2009-06-18 17:21:25 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-06-18 17:21:25 +0200 |
commit | 3a309abfab3762d1c3bc2f90b961582e83d5971a (patch) | |
tree | b04ae4230e1d2b67f78e4ce74b0ed6038c62be6d /src/game/ArenaTeam.cpp | |
parent | 85e59ecd578159a049295071f456c52e9d124de6 (diff) |
* In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases).
* Other minor cleanups, Null pointer checks etc.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ArenaTeam.cpp')
-rw-r--r-- | src/game/ArenaTeam.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/ArenaTeam.cpp b/src/game/ArenaTeam.cpp index 3c3fc160f74..7c3c44d2bbe 100644 --- a/src/game/ArenaTeam.cpp +++ b/src/game/ArenaTeam.cpp @@ -276,7 +276,7 @@ void ArenaTeam::DelMember(uint64 guid) player->SetInArenaTeam(0, GetSlot()); player->GetSession()->SendArenaTeamCommandResult(ERR_ARENA_TEAM_QUIT_S, GetName(), "", 0); // delete all info regarding this team - for(int i = 0; i < 6; ++i) + for(uint8 i = 0; i < 6; ++i) { player->SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + (GetSlot() * 6) + i, 0); } |