mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 23:04:12 +00:00
Fixed crash from ghosted-unit-bugfix.
This commit is contained in:
parent
3168cf6f19
commit
1f64147b03
@ -264,8 +264,7 @@ void highlight_visitor::visit_move(move_ptr move)
|
||||
side_actions& sa = *resources::teams->at(move->team_index()).get_side_actions();
|
||||
side_actions::iterator last_action = sa.find_last_action_of(move->get_unit());
|
||||
|
||||
assert(last_action != sa.end());
|
||||
if(*last_action != move)
|
||||
if(last_action != sa.end() && *last_action != move)
|
||||
{
|
||||
move->fake_unit_->set_disabled_ghosted(false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user