mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 15:35:25 +00:00
Fix a problem using a singular iterator.
This commit is contained in:
parent
010a38ebbf
commit
b8ee30a86b
@ -235,6 +235,10 @@ void side_actions::hide()
|
||||
|
||||
hidden_ = true;
|
||||
|
||||
if(empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach(action_ptr act, *this)
|
||||
act->hide();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user