mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 02:56:43 +01:00
AllocateGamestate: fix uninitialized memory
Fixes a segfault when resizing a window in between allocating and loading the gamestate.
This commit is contained in:
parent
b67d146cdb
commit
bbba7da52f
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue