mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 21:38:39 -04:00
fix crash when trying to send chat macro with key ASCII code < '0' (#958)
This commit is contained in:
parent
44921bfd9a
commit
6323e85a84
@ -1843,7 +1843,7 @@ boolean HU_Responder(event_t *ev)
|
||||
if (altdown)
|
||||
{
|
||||
c = c - '0';
|
||||
if (c > 9)
|
||||
if (c < 0 || c > 9)
|
||||
return false;
|
||||
// fprintf(stderr, "got here\n");
|
||||
macromessage = chat_macros[c];
|
||||
|
Loading…
x
Reference in New Issue
Block a user