minor stuff

This commit is contained in:
konstin 2014-07-16 15:40:27 +02:00
parent 0ec2cd6dc1
commit ec73fcb2b7
2 changed files with 4 additions and 8 deletions

View File

@ -77,15 +77,11 @@ void RandomGPInfoDialog::addSpinners()
int index_standard; int index_standard;
const std::vector<std::string>& groups = track_manager->getAllTrackGroups(); const std::vector<std::string>& groups = track_manager->getAllTrackGroups();
for (unsigned int i = 0; i < groups.size(); i++) for (unsigned int i = 0; i < groups.size(); i++)
{
// FIXME: The NULL check is necessary until #1348 on github is fixed
if (groups[i].c_str() != NULL)
{ {
spinner->addLabel(stringw(groups[i].c_str())); spinner->addLabel(stringw(groups[i].c_str()));
if(groups[i] == "standard") if(groups[i] == "standard")
index_standard = i+1; index_standard = i+1;
} }
}
// The value can only be set here because SpinnerWidget resets the value // The value can only be set here because SpinnerWidget resets the value
// every time a label is added // every time a label is added
spinner->setValue(index_standard); spinner->setValue(index_standard);

View File

@ -135,7 +135,7 @@ Track::Track(const std::string &filename)
m_ident=="overworld"; m_ident=="overworld";
m_minimap_x_scale = 1.0f; m_minimap_x_scale = 1.0f;
m_minimap_y_scale = 1.0f; m_minimap_y_scale = 1.0f;
m_default_number_of_laps= 3; m_default_number_of_laps= UserConfigParams::m_num_laps;
m_all_nodes.clear(); m_all_nodes.clear();
m_all_physics_only_nodes.clear(); m_all_physics_only_nodes.clear();
m_all_cached_meshes.clear(); m_all_cached_meshes.clear();