Exactly
New Member
- Joined
- Jul 14, 2014
- Messages
- 119
- Reaction score
- 4
player.cpp: In member function 'virtual void Player:ostAddNotification(Creature*, Thing*, const Cylinder*, int32_t, CylinderLink_t)':
player.cpp:3442:7: warning: variable 'requireListUpdate' set but not used [-Wunused-but-set-variable]
player.cpp: In member function 'virtual void Player:ostRemoveNotification(Creature*, Thing*, const Cylinder*, int32_t, bool, CylinderLink_t)':
player.cpp:3487:7: warning: variable 'requireListUpdate' set but not used [-Wunused-but-set-variable]
Line 3442
Code:
bool requireListUpdate = true;
if(link == LINK_OWNER || link == LINK_TOPPARENT)
{
if(const Item* item = (oldParent ? oldParent->getItem() : NULL))
{
assert(item->getContainer() != NULL);
requireListUpdate = item->getContainer()->getHoldingPlayer() != this;
}
else
requireListUpdate = oldParent != this;
updateInventoryWeight();
updateItemsLight();
updateWeapon();
sendStats();
}
Line 3487
Code:
bool requireListUpdate = true;
if(link == LINK_OWNER || link == LINK_TOPPARENT)
{
if(const Item* item = (newParent ? newParent->getItem() : NULL))
{
assert(item->getContainer() != NULL);
requireListUpdate = item->getContainer()->getHoldingPlayer() == this;
}
else
requireListUpdate = newParent == this;
updateInventoryWeight();
updateItemsLight();
updateWeapon();
sendStats();
}
Thanks!