From e1ee506e483c5c9d861ff6a4d61c9c9033798e40 Mon Sep 17 00:00:00 2001 From: Dave White Date: Thu, 2 Oct 2003 11:39:47 +0000 Subject: [PATCH] made it so footsteps don't display on tile the unit is on --- src/display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display.cpp b/src/display.cpp index ec125d396a0..1bf4a6fcca7 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -1248,7 +1248,7 @@ void display::draw_footstep(const gamemap::location& loc, int xloc, int yloc) std::vector::const_iterator i = std::find(route_.steps.begin(),route_.steps.end(),loc); - if(i == route_.steps.end()) + if(i == route_.steps.begin() || i == route_.steps.end()) return; const bool left_foot = is_even(i - route_.steps.begin());