Changeset 177 for trunk/src/game/debugcmds.cpp
- Timestamp:
- 11/19/08 13:43:30 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/debugcmds.cpp
r102 r177 320 320 { 321 321 Bag *bag = (Bag*)item; 322 const ItemPrototype *proto = bag->GetProto(); 323 for (uint8 j = 0; j < proto->ContainerSlots; ++j) 322 for (uint8 j = 0; j < bag->GetBagSize(); ++j) 324 323 { 325 324 Item* item = bag->GetItemByPos(j); … … 417 416 { 418 417 Bag *bag = (Bag*)item; 419 const ItemPrototype *proto = bag->GetProto(); 420 for (uint8 j = 0; j < proto->ContainerSlots; ++j) 418 for (uint8 j = 0; j < bag->GetBagSize(); ++j) 421 419 { 422 420 Item* item = bag->GetItemByPos(j);