Skip to content
Permalink
Browse files

Fixed undefined key access in test program.

  • Loading branch information
philippwiesemann committed May 21, 2015
1 parent 6365381 commit 39d27a6380f23c7f8b294b4d30539bcefed7521f
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/testdrawchessboard.c
@@ -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();

0 comments on commit 39d27a6

Please sign in to comment.