Avoid crash by ASSERT()

I think this ASSERT crashes the program because they aren't called from
the main thread, but I'm not quite sure.
This commit is contained in:
David Capello 2014-08-12 08:22:43 -03:00
parent 414427e879
commit 155b770acd

View File

@ -497,7 +497,10 @@ void _handle_key_release(int scancode)
repeat_scan = -1;
}
ASSERT(scancode < KEY_MAX);
/* This is quite common if we press the numpad dot/delete. In debug
mode this asserts crashes the whole program. */
/* ASSERT(scancode < KEY_MAX); */
if (scancode >= KEY_MAX) {
TRACE(PREFIX_I "Scancode out of range %d\n", scancode);
return;