aboutsummaryrefslogtreecommitdiff
path: root/src/game/Guild.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-06-18 17:21:25 +0200
committerMachiavelli <none@none>2009-06-18 17:21:25 +0200
commit3a309abfab3762d1c3bc2f90b961582e83d5971a (patch)
treeb04ae4230e1d2b67f78e4ce74b0ed6038c62be6d /src/game/Guild.cpp
parent85e59ecd578159a049295071f456c52e9d124de6 (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/Guild.cpp')
-rw-r--r--src/game/Guild.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Guild.cpp b/src/game/Guild.cpp
index 205277be2d0..811fc4b2b66 100644
--- a/src/game/Guild.cpp
+++ b/src/game/Guild.cpp
@@ -1096,7 +1096,7 @@ void Guild::DisplayGuildBankTabsInfo(WorldSession *session)
data << uint8(purchased_tabs); // here is the number of tabs
- for(int i = 0; i < purchased_tabs; ++i)
+ for(uint8 i = 0; i < purchased_tabs; ++i)
{
data << m_TabListMap[i]->Name.c_str();
data << m_TabListMap[i]->Icon.c_str();