diff options
author | Machiavelli <none@none> | 2009-06-18 18:29:28 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-06-18 18:29:28 +0200 |
commit | a4dafbf8ec26fa33ce51140bb77b0b1a68df93ff (patch) | |
tree | 5850e3965f0eabb6a17433fa5737d807bad84406 /src/game/Bag.cpp | |
parent | 1f871af996eb837d7a191fb947bcf565f4592c1c (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.cpp | 4 |
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(); |