Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed undefined key access in test program.
  • Loading branch information
philippwiesemann committed May 21, 2015
1 parent 6365381 commit 39d27a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testdrawchessboard.c
Expand Up @@ -68,7 +68,7 @@ loop()
return;
}

if(e.key.keysym.sym == SDLK_ESCAPE) {
if ((e.type == SDL_KEYDOWN) && (e.key.keysym.sym == SDLK_ESCAPE)) {
done = 1;
#ifdef __EMSCRIPTEN__
emscripten_cancel_main_loop();
Expand Down

0 comments on commit 39d27a6

Please sign in to comment.