Skip to content

Commit

Permalink
Fix the astyle regression in scenario.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Simon committed Feb 10, 2017
1 parent 359c357 commit 89f09f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scenario.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ std::vector<string_id<profession>> scenario::permitted_professions() const
const auto all = profession::get_all();
std::vector<string_id<profession>> &res = cached_permitted_professions;
for( const profession &p : all ) {
const bool present = std::find( professions.begin(), professions.end(), p.ident() ) != professions.end();
const bool present = std::find( professions.begin(), professions.end(),
p.ident() ) != professions.end();
if( blacklist || professions.empty() ) {
if( !present && !p.has_flag( "SCEN_ONLY" ) ) {
res.push_back( p.ident() );
Expand Down

0 comments on commit 89f09f5

Please sign in to comment.