Skip to content

Commit

Permalink
Fixed crash when enabling console
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Jul 30, 2014
1 parent 8db371b commit e7b6de6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/supertux/screen_manager.cpp
Expand Up @@ -191,7 +191,6 @@ void
ScreenManager::process_events()
{
g_jk_controller->update();
const Uint8 *keystate = SDL_GetKeyboardState(NULL); //edited by giby
SDL_Event event;
while(SDL_PollEvent(&event))
{
Expand Down Expand Up @@ -234,8 +233,7 @@ const Uint8 *keystate = SDL_GetKeyboardState(NULL); //edited by giby
take_screenshot();
}
else if (event.key.keysym.sym == SDLK_F1 &&
(keystate[SDLK_LCTRL] || keystate[SDLK_RCTRL]) &&
keystate[SDLK_c])
event.key.keysym.mod & KMOD_CTRL)
{
Console::instance->toggle();
g_config->console_enabled = true;
Expand Down

0 comments on commit e7b6de6

Please sign in to comment.