Fixed compiler warning.

This commit is contained in:
hiker 2014-07-07 16:53:42 +10:00
parent c222bbcb1c
commit cab0b2d833

View File

@ -126,7 +126,7 @@ void GrandPrixData::changeReverse(const RandomGPInfoDialog::REVERSED use_reverse
m_reversed[i] = false; m_reversed[i] = false;
else if (use_reverse == RandomGPInfoDialog::MIXED) else if (use_reverse == RandomGPInfoDialog::MIXED)
if (track_manager->getTrack(m_tracks[i])->reverseAvailable()) if (track_manager->getTrack(m_tracks[i])->reverseAvailable())
m_reversed[i] = rand() % 2; m_reversed[i] = (rand() % 2!=0);
else else
m_reversed[i] = false; m_reversed[i] = false;
else // all reversed else // all reversed