Bugfix for crash when selecting a Grand Prix.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1294 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
afca5cf6c6
commit
a87e04ae29
@ -134,7 +134,7 @@ void GrandPrixSelect::update(float dt)
|
|||||||
glOrtho(0.0, user_config->m_width, 0.0, user_config->m_height, -1.0, +1.0);
|
glOrtho(0.0, user_config->m_width, 0.0, user_config->m_height, -1.0, +1.0);
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
const CupData &cup = m_all_cups[CLICKED_TOKEN];
|
const CupData &cup = m_all_cups[CLICKED_TOKEN-WTOK_FIRSTPRIX];
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glBindTexture(GL_TEXTURE_2D, 0);
|
glBindTexture(GL_TEXTURE_2D, 0);
|
||||||
const GLfloat BACKGROUND_COLOUR[4] = { 0.3f, 0.3f, 0.3f, 0.5f };
|
const GLfloat BACKGROUND_COLOUR[4] = { 0.3f, 0.3f, 0.3f, 0.5f };
|
||||||
@ -160,7 +160,7 @@ void GrandPrixSelect::select()
|
|||||||
menu_manager->popMenu();
|
menu_manager->popMenu();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
race_manager->setGrandPrix(m_all_cups[CLICKED_TOKEN]);
|
race_manager->setGrandPrix(m_all_cups[CLICKED_TOKEN-WTOK_FIRSTPRIX]);
|
||||||
menu_manager->pushMenu(MENUID_DIFFICULTY);
|
menu_manager->pushMenu(MENUID_DIFFICULTY);
|
||||||
} // select
|
} // select
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user