PyObject* wpChar_hasfollower( wpChar* self, PyObject* args )
static PyObject* wpChar_hasfollower( wpChar* self, PyObject* args )
PyObject* wpChar_hasfollower( wpChar* self, PyObject* args ){	if( !self->pChar || self->pChar->free )		return PyFalse;	P_PLAYER player = dynamic_cast<P_PLAYER>( self->pChar );	if ( !player )		return PyFalse;	if( !checkArgChar( 0 ) )	{		PyErr_BadArgument();		return NULL;	}	P_NPC pPet = dynamic_cast<P_NPC>( getArgChar( 0 ) );		if( pPet )	{		cBaseChar::CharContainer::const_iterator iter = player->pets().begin();		cBaseChar::CharContainer::const_iterator end  = player->pets().end();		return std::binary_search( iter, end, (cBaseChar*)pPet ) ? PyTrue : PyFalse;	}	return PyFalse;}