From 6e7a5488b561aee4f3b5e3b22ff1b7851c3921ef Mon Sep 17 00:00:00 2001 From: Saveliy Skresanov Date: Tue, 9 Jul 2013 23:39:48 +0700 Subject: [PATCH] Fixed the bug with SPWN not creating when redoing (Ctrl-Z). --- src/simulation/Simulation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index e45f5a80a..5d40529c1 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