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:
parent
10299aae86
commit
39d4fe5fb7
@ -293,7 +293,7 @@ void ThreeStrikesBattle::moveKartAfterRescue(Kart* kart)
|
|||||||
fabs(kart_z - v.getZ());
|
fabs(kart_z - v.getZ());
|
||||||
if(dist_n < smallest_distance_found || closest_id_found == -1)
|
if(dist_n < smallest_distance_found || closest_id_found == -1)
|
||||||
{
|
{
|
||||||
closest_id_found = n+1;
|
closest_id_found = n;
|
||||||
smallest_distance_found = dist_n;
|
smallest_distance_found = dist_n;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user