Fix uninitialized stickmen
Funny commit message aside, they were throwing warnings in valgrind.
This commit is contained in:
parent
d75e4ccb2e
commit
04e8538a48
@ -2287,6 +2287,8 @@ void Simulation::clear_sim(void)
|
||||
memset(gol, 0, sizeof(gol));
|
||||
memset(portalp, 0, sizeof(portalp));
|
||||
memset(fighters, 0, sizeof(fighters));
|
||||
memset(&player, 0, sizeof(player));
|
||||
memset(&player2, 0, sizeof(player2));
|
||||
std::fill(elementCount, elementCount+PT_NUM, 0);
|
||||
elementRecount = true;
|
||||
fighcount = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user