Fixed a bad pointer reset
This commit is contained in:
parent
9968b377a5
commit
5985c3e7f6
24
src/main.c
24
src/main.c
|
@ -512,27 +512,31 @@ resetGame(void)
|
|||
{
|
||||
SDL_FlushEvents(SDL_FIRSTEVENT, SDL_LASTEVENT);
|
||||
|
||||
if (mainMenu)
|
||||
if (mainMenu) {
|
||||
menu_destroy(mainMenu);
|
||||
mainMenu = NULL;
|
||||
if (charSelectMenu)
|
||||
}
|
||||
if (charSelectMenu) {
|
||||
menu_destroy(charSelectMenu);
|
||||
charSelectMenu = NULL;
|
||||
if (characterSelectScreen)
|
||||
}
|
||||
if (characterSelectScreen) {
|
||||
screen_destroy(characterSelectScreen);
|
||||
charSelectMenu = NULL;
|
||||
|
||||
if (creditsScreen)
|
||||
characterSelectScreen = NULL;
|
||||
}
|
||||
if (creditsScreen) {
|
||||
screen_destroy(creditsScreen);
|
||||
creditsScreen = NULL;
|
||||
|
||||
if (scoreScreen)
|
||||
}
|
||||
if (scoreScreen) {
|
||||
screen_destroy(scoreScreen);
|
||||
scoreScreen = NULL;
|
||||
|
||||
if (inGameMenu)
|
||||
}
|
||||
if (inGameMenu) {
|
||||
menu_destroy(inGameMenu);
|
||||
inGameMenu = NULL;
|
||||
}
|
||||
|
||||
initInGameMenu();
|
||||
|
||||
if (gMap)
|
||||
|
|
Loading…
Reference in New Issue