mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 18:08:10 +00:00
Fix error in previous commit
This commit is contained in:
parent
dd2f0d6dd1
commit
4c44213f06
@ -2336,8 +2336,11 @@ bool display::propagate_invalidation(const std::set<map_location>& locs)
|
|||||||
|
|
||||||
bool has_inval = false;
|
bool has_inval = false;
|
||||||
std::set<map_location>::const_iterator i = locs.begin();
|
std::set<map_location>::const_iterator i = locs.begin();
|
||||||
for(; i != locs.end() && !has_inval; ++i) {
|
for(; i != locs.end(); ++i) {
|
||||||
has_inval = invalidated_.count(*i);
|
if (invalidated_.count(*i)) {
|
||||||
|
has_inval = true;
|
||||||
|
break; // 'i' will be used later
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if no invalidation or one but nothing to propagate, return false
|
// if no invalidation or one but nothing to propagate, return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user