ryzomclassic-develop
kaetemi 4 years ago
parent f0430ec8ad
commit 66debd7ebe

@ -94,7 +94,6 @@ public:
// Get item form map reference
static inline const CAllStaticItems& getItemMapForm() { return _StaticSheets._StaticItems; }
static inline CAllStaticItems& getItemMapFormNoConst() { return _StaticSheets._StaticItems; }
// Get form for brick
// static const CStaticGameBrick* getBrickForm( const NLMISC::CSheetId& sheetId );

@ -125,8 +125,8 @@ CGameItemManager::CGameItemManager()
//CGameItemPtr CGameItemManager::getNewItem( CEntityId& id, CSheetId& sheetId, uint16 quality, bool destroyable , bool dropable)
CGameItemPtr CGameItemManager::getNewItem( const CSheetId& sheetId, uint16 quality, bool destroyable , bool dropable)
{
CAllStaticItems::iterator itForm = CSheets::getItemMapFormNoConst().find( sheetId );
if( itForm != CSheets::getItemMapFormNoConst().end() )
CAllStaticItems::const_iterator itForm = CSheets::getItemMapForm().find( sheetId );
if( itForm != CSheets::getItemMapForm().end() )
{
// get the slot count
// sint16 slotCount = 0;

Loading…
Cancel
Save