Fix uninitialized stickmen

Funny commit message aside, they were throwing warnings in valgrind.
This commit is contained in:
Tamás Bálint Misius 2022-10-06 19:42:13 +02:00
parent d75e4ccb2e
commit 04e8538a48
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -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;