aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Entities/GameObject
diff options
context:
space:
mode:
authorSpp- <u84280@epreinf21.(none)>2011-07-01 14:58:44 +0200
committerSpp- <u84280@epreinf21.(none)>2011-07-01 14:58:44 +0200
commitbb921ae78c365b608b604f820ba7292b786637aa (patch)
tree0696fbb5be0680488a2da82d63221d43c2f7abf3 /src/server/game/Entities/GameObject
parentce75ced7415cff24372e7c8b5bdb0dc0f1ef976f (diff)
Core: Do not use STL container size method to check if container is empty
Diffstat (limited to 'src/server/game/Entities/GameObject')
-rwxr-xr-xsrc/server/game/Entities/GameObject/GameObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp
index 85fa2c3e362..539a04ef2c6 100755
--- a/src/server/game/Entities/GameObject/GameObject.cpp
+++ b/src/server/game/Entities/GameObject/GameObject.cpp
@@ -1092,7 +1092,7 @@ void GameObject::Use(Unit* user)
if (user->GetTypeId() != TYPEID_PLAYER)
return;
- if (!ChairListSlots.size()) // this is called once at first chair use to make list of available slots
+ if (ChairListSlots.empty()) // this is called once at first chair use to make list of available slots
{
if (info->chair.slots > 0) // sometimes chairs in DB have error in fields and we dont know number of slots
for (uint32 i = 0; i < info->chair.slots; ++i)