Fixed incorrect rescue positions in battle mode, which could

result in a crash (bug #3140030).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7102 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-12-20 02:41:02 +00:00
parent 10299aae86
commit 39d4fe5fb7

View File

@ -293,7 +293,7 @@ void ThreeStrikesBattle::moveKartAfterRescue(Kart* kart)
fabs(kart_z - v.getZ());
if(dist_n < smallest_distance_found || closest_id_found == -1)
{
closest_id_found = n+1;
closest_id_found = n;
smallest_distance_found = dist_n;
}
}