Hey guys, how are you ?
Now, i'm studying C++ and i got one question !
I have this function :
AddWeapon( sInven_Set* pItem )
and i need to call this on other function, but i dont know how to init sInven_Set* pItem.
If i init and just call pItem with null value game crashs because this ASSERT
if( pItem->nClassNum == WMGR_INVALID_ID )
{
ASSERT(!"pItem->nClassNum ==255");
return LTFALSE;
}
so , how to solve that ?
Thanks a lot !