Skip to content

Commit

Permalink
remove unnecessary special handling of leader
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEady committed Mar 19, 2020
1 parent 9b1b7b8 commit 7b6e02a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pol-core/pol/party.cpp
Expand Up @@ -776,16 +776,12 @@ void Party::printOn( Clib::StreamWriter& sw ) const
std::vector<Mobile::Character*> Party::get_members() const
{
std::vector<Mobile::Character*> ret;
Mobile::Character* chr;

chr = Core::find_character( _leaderserial );
if ( chr )
ret.emplace_back( chr );
for ( auto& serial : _member_serials )
{
chr = Core::find_character( serial );
Mobile::Character* chr = Core::find_character( serial );
if ( chr )
ret.emplace_back( chr );
ret.push_back( chr );
}
return ret;
}
Expand Down

0 comments on commit 7b6e02a

Please sign in to comment.