Fixed compiler warning.
This commit is contained in:
parent
2859265545
commit
46b62de07e
2
src/karts/controller/skidding_ai.cpp
Normal file → Executable file
2
src/karts/controller/skidding_ai.cpp
Normal file → Executable file
@ -2025,7 +2025,7 @@ void SkiddingAI::computeNearestKarts()
|
||||
// The cast truncate the decimals, so it won't go over n-1
|
||||
// as the highest possible ideal_target is n
|
||||
int target_index = (int) (ideal_target - 0.5f);
|
||||
assert(target_index >= 0 && target_index <= n-1);
|
||||
assert(target_index >= 0 && target_index <= (int)n-1);
|
||||
target_overall_distance = overall_distance[target_index];
|
||||
}
|
||||
// Now convert 'maximum overall distance' to distance to player.
|
||||
|
Loading…
Reference in New Issue
Block a user