Skip to content

Commit

Permalink
fix [side]type=""
Browse files Browse the repository at this point in the history
this is now treated the same as having to type= attribute specified at all. fixes #1691
  • Loading branch information
gfgtdf committed May 14, 2017
1 parent 9b9a720 commit b572928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/teambuilder.cpp
Expand Up @@ -246,7 +246,7 @@ class team_builder {
// this hack shall be removed, since it messes up with 'multiple leaders'

// If this side tag describes the leader of the side
if (side_cfg_.has_attribute("type") && side_cfg_["type"] != "null" ) {
if (!side_cfg_["type"].empty() && side_cfg_["type"] != "null" ) {
handle_leader(side_cfg_);
}
for (const config &l : side_cfg_.child_range("leader")) {
Expand Down

0 comments on commit b572928

Please sign in to comment.