Skip to content

Commit

Permalink
Fixup f878433
Browse files Browse the repository at this point in the history
Issue pointed out by @jyrkive. The new loop would skip any character identical to the first
one instead of only skipping the first one.
  • Loading branch information
Vultraz committed Oct 26, 2017
1 parent c49c726 commit db8891f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/team.cpp
Expand Up @@ -874,14 +874,14 @@ void team::shroud_map::read(const std::string& str)
void team::shroud_map::merge(const std::string& str)
{
int x = 0, y = 0;
for(const char sh : str) {
if(sh == '|' && sh != str.front()) {
for(int i = 1; i < str.length(); ++i) {
if(str[i] == '|') {
y = 0;
x++;
} else if(sh == '1') {
} else if(str[i] == '1') {
clear(x, y);
y++;
} else if(sh == '0') {
} else if(str[i] == '0') {
y++;
}
}
Expand Down

0 comments on commit db8891f

Please sign in to comment.