mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-01 06:00:15 +02:00
Fix uninitialized stickmen
Funny commit message aside, they were throwing warnings in valgrind.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user