mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 10:43:33 +00:00
don't try to move_unit() when we got no path
This commit is contained in:
parent
2e0deae49b
commit
ffd670c459
@ -1024,7 +1024,7 @@ namespace {
|
||||
|
||||
src = dst;
|
||||
}
|
||||
unit_display::move_unit(path, dummy_unit, *teams);
|
||||
if (!path.empty()) unit_display::move_unit(path, dummy_unit, *teams);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user