Author: esr
Date: Wed Oct 22 21:06:44 2008
New Revision: 30311
URL: http://svn.gna.org/viewcvs/wesnoth?rev=30311&view=rev
Log:
Forward-port suokko's assert fix from 29498. previously reverted for
emergency fix.
Modified:
trunk/src/ai.cpp
Modified: trunk/src/ai.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai.cpp?rev=30311&r1=30310&r2=30311&view=diff
==============================================================================
--- trunk/src/ai.cpp (original)
+++ trunk/src/ai.cpp Wed Oct 22 21:06:44 2008
@@ -535,7 +535,7 @@
}
if(rt != p.routes.end()) {
-
assert(static_cast<size_t>(u_it->second.movement_left()) >=
rt->second.steps.size()-1 && "Trying to move unit without enough move points
left\n");
+
assert(static_cast<size_t>(u_it->second.movement_left()) >=
rt->second.steps.size() && "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;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits