From 6e7a5488b561aee4f3b5e3b22ff1b7851c3921ef Mon Sep 17 00:00:00 2001 From: Saveliy Skresanov Date: Tue, 9 Jul 2013 23:39:48 +0700 Subject: Fixed the bug with SPWN not creating when redoing (Ctrl-Z). diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index e45f5a8..5d40529 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -307,6 +307,10 @@ Snapshot * Simulation::CreateSnapshot() void Simulation::Restore(const Snapshot & snap) { parts_lastActiveIndex = NPART-1; + + for(int i; i