mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 03:16:58 +00:00
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:
parent
414427e879
commit
155b770acd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user