Skip to content

Commit

Permalink
Don't allocate space for nonexistent race deceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Dec 25, 2014
1 parent 0835280 commit c20ef0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/help/help_impl.cpp
Expand Up @@ -870,7 +870,10 @@ std::vector<topic> generate_unit_topics(const bool sort_generated, const std::st
}

std::stringstream text;
text << race_description << "\n\n";

if (!race_description.empty()) {
text << race_description << "\n\n";
}

if (alignments.size() > 0) {
std::set<std::string>::iterator it = alignments.begin();
Expand Down

0 comments on commit c20ef0f

Please sign in to comment.