aboutsummaryrefslogtreecommitdiff
path: root/src/game/Bag.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-06-18 18:29:28 +0200
committerMachiavelli <none@none>2009-06-18 18:29:28 +0200
commita4dafbf8ec26fa33ce51140bb77b0b1a68df93ff (patch)
tree5850e3965f0eabb6a17433fa5737d807bad84406 /src/game/Bag.cpp
parent1f871af996eb837d7a191fb947bcf565f4592c1c (diff)
* More updating of iterator data types in loops
--HG-- branch : trunk
Diffstat (limited to 'src/game/Bag.cpp')
-rw-r--r--src/game/Bag.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Bag.cpp b/src/game/Bag.cpp
index 223c40848b2..98870b915eb 100644
--- a/src/game/Bag.cpp
+++ b/src/game/Bag.cpp
@@ -105,7 +105,7 @@ bool Bag::LoadFromDB(uint32 guid, uint64 owner_guid, QueryResult *result)
return false;
// cleanup bag content related item value fields (its will be filled correctly from `character_inventory`)
- for (int i = 0; i < MAX_BAG_SIZE; ++i)
+ for (uint8 i = 0; i < MAX_BAG_SIZE; ++i)
{
SetUInt64Value(CONTAINER_FIELD_SLOT_1 + (i*2), 0);
if (m_bagslot[i])
@@ -120,7 +120,7 @@ bool Bag::LoadFromDB(uint32 guid, uint64 owner_guid, QueryResult *result)
void Bag::DeleteFromDB()
{
- for (int i = 0; i < MAX_BAG_SIZE; ++i)
+ for (uint8 i = 0; i < MAX_BAG_SIZE; ++i)
if (m_bagslot[i])
m_bagslot[i]->DeleteFromDB();