aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r--src/game/GameObject.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index 8a2bf6f521d..2c4229a9a26 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -419,7 +419,7 @@ void GameObject::Update(uint32 /*p_time*/)
{
std::set<uint32>::const_iterator it = m_unique_users.begin();
std::set<uint32>::const_iterator end = m_unique_users.end();
- for (; it != end; it++)
+ for (; it != end; ++it)
{
Unit* owner = Unit::GetUnit(*this, uint64(*it));
// For now we do not support go cast
@@ -986,12 +986,12 @@ 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 (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++)
- ChairListSlots[i] = 0; //Last user of current slot set to 0 (none sit here yet)
+ if (!ChairListSlots.size()) // 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)
+ ChairListSlots[i] = 0; // Last user of current slot set to 0 (none sit here yet)
else
- ChairListSlots[0] = 0; //error in DB, make one default slot
+ ChairListSlots[0] = 0; // error in DB, make one default slot
Player* player = (Player*)user;