Show
Ignore:
Timestamp:
11/19/08 13:43:30 (17 years ago)
Author:
yumileroy
Message:

[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..

Original author: KingPin?
Date: 2008-11-06 08:20:26-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/debugcmds.cpp

    r102 r177  
    320320            { 
    321321                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) 
    324323                { 
    325324                    Item* item = bag->GetItemByPos(j); 
     
    417416            { 
    418417                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) 
    421419                { 
    422420                    Item* item = bag->GetItemByPos(j);