Skip to content

Commit

Permalink
fixup an implicit cast to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 19, 2014
1 parent 06b0506 commit cd59649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unit_map.hpp
Expand Up @@ -228,7 +228,7 @@ class unit_map {

bool valid() const {
if(valid_for_dereference()) {
return i_->second.unit;
return (bool) i_->second.unit;
}
return false;
}
Expand Down

0 comments on commit cd59649

Please sign in to comment.