another warning fixed
This commit is contained in:
parent
8712f9c06e
commit
af7cb75a27
1 changed files with 2 additions and 1 deletions
|
@ -543,8 +543,9 @@ map_location ai_interface::move_unit_partial(location from, location to,
|
|||
}
|
||||
|
||||
if(rt != p.routes.end()) {
|
||||
if (static_cast<size_t>(u_it->second.movement_left()) >= rt->second.steps.size())
|
||||
if (static_cast<size_t>(u_it->second.movement_left()) >= rt->second.steps.size()) {
|
||||
LOG_AI<<"Trying to move unit without enough move points left\n";
|
||||
}
|
||||
u_it->second.set_movement(rt->second.move_left);
|
||||
|
||||
std::vector<location> steps = rt->second.steps;
|
||||
|
|
Loading…
Add table
Reference in a new issue