void World::RemoveAircraft( int identifier ) { Aircraft* aircraft = GetAircraft( identifier ); if ( aircraft ) { aircraft->Destroy(); pImpl->mPlayerAircrafts.erase( std::find( pImpl->mPlayerAircrafts.begin(), pImpl->mPlayerAircrafts.end(), aircraft ) ); } }
void World::removeAircraft( int identifier ) { Aircraft* aircraft = getAircraft( identifier ); if ( aircraft ) { aircraft->Destroy(); mPlayerAircrafts.erase( std::find( mPlayerAircrafts.begin(), mPlayerAircrafts.end(), aircraft )); } }