1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-16 16:09:42 +01:00

Fix a crash on first unfocus

This commit is contained in:
Ethan Lee 2021-03-21 17:19:08 -04:00 committed by GitHub
parent 7abd4bb8d8
commit 415d4790e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,7 +249,7 @@ static const struct ImplFunc unfocused_func_list[] = {
}; };
static const struct ImplFunc* unfocused_funcs = unfocused_func_list; static const struct ImplFunc* unfocused_funcs = unfocused_func_list;
static int num_unfocused_funcs = SDL_arraysize(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) static enum IndexCode increment_unfocused_func_index(void)
{ {