P_ITEM pi_multi = findmulti(pc_currchar->pos); if (pi_multi == NULL)
cMulti* pi_multi = cMulti::findMulti( pc_currchar->pos ); if( !pi_multi )
int CheckValidPlace(int s){	int los = 0;	P_CHAR pc_currchar = currchar[s];	P_ITEM pi_multi = findmulti(pc_currchar->pos); 	if (pi_multi == NULL) 		return 0;	if (!IsHouse(pi_multi->id())) 		return 0;		if(pc_currchar->packitem != INVALID_SERIAL)	{		vector<SERIAL> vecContainer = contsp.getData(pc_currchar->packitem);		for (unsigned int j = 0; j < vecContainer.size(); j++)		{			P_ITEM pi = FindItemBySerial(vecContainer[j]);			if (pi != NULL) 				if (pi->type()==7 && calcserial(pi->more1, pi->more2, pi->more3, pi->more4) == pi_multi->serial)				{					los=1;					break;				}		}				if (los)		{			return 1;		} else			sysmessage(s, "You must be close to a house and have a key in your pack to place that.");	} else if (pi_multi == NULL)		sysmessage(s, "You must be close to a house and have a key in your pack to place that.");	return 0;}