Skip to content

Commit

Permalink
sista::Field filled fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
FLAK-ZOSO committed Nov 16, 2023
1 parent 7094cff commit fff7857
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified starklag
Binary file not shown.
1 change: 1 addition & 0 deletions starklag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ int main(int argc, char* argv[]) {
// Clean the dead organisms
for (Organism* organism : Organism::dead_organisms) {
Organism::organisms.erase(std::remove(Organism::organisms.begin(), Organism::organisms.end(), organism), Organism::organisms.end());
field->removePawn(organism->getCoordinates());
}
Organism::dead_organisms.clear(); // I hope this doesn't cause a memory leak
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
Expand Down

0 comments on commit fff7857

Please sign in to comment.