Commit fb62ac56 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: don't initialize g_keyRemapTable[] values if they're already non-zero

Required for key remapping to work in the editor after the commit that added the "working directory only" checkbox.
parent ac197498
......@@ -674,7 +674,9 @@ int32_t baselayer_init(void)
for (native_t i = 0; i < NUMKEYS; i++) g_keyRemapTable[i] = i;
for (native_t i = 0; i < NUMKEYS; i++)
if (g_keyRemapTable[i] == 0)
g_keyRemapTable[i] = i;
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment