Fix a crash on first unfocus

This commit is contained in:
Ethan Lee authored and GitHub committed 2021-03-21 17:19:08 -04:00
1 parent 7abd4bb8d8
commit 415d4790e2
1 file changed
+1 -1
+1 -1
View File
@@ -249,7 +249,7 @@ static const struct ImplFunc unfocused_func_list[] = {
};
static const struct ImplFunc* unfocused_funcs = unfocused_func_list;
static int num_unfocused_funcs = SDL_arraysize(unfocused_func_list);
static int unfocused_func_index = -1;
static int unfocused_func_index = 0; // This does not get incremented on start, do NOT use -1!
static enum IndexCode increment_unfocused_func_index(void)
{