Remove warnings

This commit is contained in:
Benau 2019-11-07 14:40:10 +08:00
parent 0f9688f5da
commit 9d75b706d5
2 changed files with 4 additions and 4 deletions

View File

@ -16,9 +16,9 @@
Setting text=" " is important, otherwise the height of the
widget is incorrect. -->
<buttonbar id="operations" width="65%" height="18%" align="center">
<icon-button id="left" width="128" height="128" raw_text="Left"/>
<icon-button id="middle" width="128" height="128" raw_text="Middle"/>
<icon-button id="right" width="128" height="128" raw_text="Right"/>
<icon-button id="left" icon="gui/icons/green_check.png" width="128" height="128" raw_text="Left"/>
<icon-button id="middle" icon="gui/icons/green_check.png" width="128" height="128" raw_text="Middle"/>
<icon-button id="right" icon="gui/icons/green_check.png" width="128" height="128" raw_text="Right"/>
</buttonbar>
</div>
</roundedbox>

View File

@ -1953,7 +1953,7 @@ void SkiddingAI::computeNearestKarts()
target_index = target_index / (num_ai - 1);
}
assert(target_index >= 0 && target_index <= n-1);
assert(target_index >= 0 && (unsigned)target_index <= n-1);
target_overall_distance = overall_distance[target_index];
}
// Now convert 'maximum overall distance' to distance to player.