static int ContainerCountItems( const int serial, short id, short color )
static int ContainerCountItems( SERIAL serial, short id, short color )
static int ContainerCountItems( const int serial, short id, short color ){	int total = 0;	P_ITEM container = FindItemBySerial( serial );	QPtrList<cItem> content = container->getContainment();	for ( P_ITEM pi = content.first(); pi; pi = content.next() )	{		if ( !pi || pi->free )			// just to be sure ;-)			continue;		if ( pi->id() == id && ( color == -1 || pi->color() == color ) )			total += pi->amount();	}	return total;}