Skip to content
Snippets Groups Projects
Commit 168f54f3 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

getkey() can return undefined.

parent 7441b003
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -548,7 +548,7 @@ function getkey() ...@@ -548,7 +548,7 @@ function getkey()
ch = '\x00'; ch = '\x00';
do { do {
ch = getkeyw(); ch = getkeyw();
if (ch === null || ch.length < 1) { if (ch === undefined || ch === null || ch.length < 1) {
ch = '\x00'; ch = '\x00';
} }
} while (ch === '\x00'); } while (ch === '\x00');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment