So i have this function
but even if i have full inventory it return 50+ free space, what's wrong?Code:int OfflineTrade::FreeSpace(LPOBJ lpUser)
{
int space = 0;
for( int i = INVETORY_WEAR_SIZE; i < MAIN_INVENTORY_SIZE; i++ )
{
// ----
if( lpUser->pInventory[i].m_Type != -1 )
continue;
else
space++;
}
return space;
}
