AllocateGamestate: fix uninitialized memory

Fixes a segfault when resizing a window in between allocating and
loading the gamestate.
This commit is contained in:
Sebastian Krzyszkowiak 2018-11-01 23:56:37 +01:00
parent b67d146cdb
commit bbba7da52f
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -358,6 +358,9 @@ SYMBOL_INTERNAL struct Gamestate* AllocateGamestate(struct Game* game, const cha
tmp->fromlib = true;
tmp->progressCount = 0;
tmp->open = false;
tmp->fb = NULL;
tmp->showLoading = true;
tmp->data = NULL;
return tmp;
}