just make in if while reading inventory like
Code:
int CDbManager::GetOneItem( CItemElem* pItemElem, char* pstrItem, int *pLocation )
{
int IndexItem = 0;
IndexItem = GetIntPaFromStr( pstrItem, pLocation );
pItemElem->m_dwItemId = (DWORD)GetIntPaFromStr( pstrItem, pLocation );
Code:
ItemProp pProp = prj.GetItemProp(pItemElem->m_dwItemId);
if(!pProp)
pItemElem->m_dwItemId = NULL_ID;