end movement even if AI has made an error in calculation

This commit is contained in:
John W. C. McNabb 2007-03-14 03:30:46 +00:00
parent a32b17aed1
commit 92f19a4256

View file

@ -437,8 +437,11 @@ gamemap::location ai_interface::move_unit_partial(location from, location to,
steps.erase(i,steps.end());
break;
} else {
if (!ignore_zocs)
LOG_STREAM(err, ai) << "AI tried to skirmish with non-skirmisher\n";
if (!ignore_zocs){
LOG_STREAM(err, ai) << "AI tried to skirmish with non-skirmisher\n";
to = *i;
steps.erase(i,steps.end());
}
}
}
}