Fixed compiler warnings.

This commit is contained in:
hiker
2014-03-25 20:54:20 +11:00
parent 72556fddc3
commit 24dc70427f
3 changed files with 3 additions and 3 deletions

View File

@@ -459,7 +459,7 @@ void World::terminateRace()
{
std::string mode_name = getIdent(); // Get the race mode name
int winner_position = 1;
int opponents = achiev->getInfo()->getGoalValue("opponents"); // Get the required opponents number
unsigned int opponents = achiev->getInfo()->getGoalValue("opponents"); // Get the required opponents number
if (mode_name == IDENT_FTL)
{
winner_position = 2;

View File

@@ -84,7 +84,7 @@ void EnterGPNameDialog::onEnterPressedInternal()
if (name.size() > 0)
{
// check for duplicate names
for (int i = 0; i < grand_prix_manager->getNumberOfGrandPrix(); i++)
for (unsigned int i = 0; i < grand_prix_manager->getNumberOfGrandPrix(); i++)
{
const GrandPrixData* gp = grand_prix_manager->getGrandPrix(i);
if (gp->getName() == name)

View File

@@ -199,7 +199,7 @@ void EditGPScreen::onConfirm()
if (m_action == "remove")
{
m_gp->remove(m_selected);
setSelected(m_selected >= m_gp->getNumberOfTracks() ?
setSelected(m_selected >= (int)m_gp->getNumberOfTracks() ?
m_gp->getNumberOfTracks() - 1 : m_selected);
loadList(m_selected);
setModified(true);