aboutsummaryrefslogtreecommitdiff
path: root/src/game/Bag.h
diff options
context:
space:
mode:
authorKingPin <none@none>2008-11-06 08:20:26 -0600
committerKingPin <none@none>2008-11-06 08:20:26 -0600
commit5746d0e98d8a5c4af96102835d501c47ed370def (patch)
treea17851f0bc08626df74b690df53f28754e9e89fe /src/game/Bag.h
parentc74f9b4a685a899091dc7cb1b5db5c494ed12b9a (diff)
[svn] * Avoid access to bag item prototype for getting bag size, use related item
update field instead as more fast source. source mangos. * Further reduce of DB access in guild handlers. * Multi-locale DBC extracting - source Foks *** Devs not responsible if all your player items drop to the ground and get eaten by ants or rabbits.. or some kind of wierd ant-rabbits.. --HG-- branch : trunk
Diffstat (limited to 'src/game/Bag.h')
-rw-r--r--src/game/Bag.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Bag.h b/src/game/Bag.h
index efb9a379be5..97f06917485 100644
--- a/src/game/Bag.h
+++ b/src/game/Bag.h
@@ -52,6 +52,7 @@ class Bag : public Item
uint8 GetSlotByItemGUID(uint64 guid) const;
bool IsEmpty() const;
uint32 GetFreeSlots() const;
+ uint32 GetBagSize() const { return GetUInt32Value(CONTAINER_FIELD_NUM_SLOTS); }
// DB operations
// overwrite virtual Item::SaveToDB