From dd2fc64793039f696c1afa34a80b54b95ea687f2 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Mon, 27 Aug 2012 13:33:15 +0100 Subject: Fix bug in history restoring where the lastActiveIndex is not updated leading to incomplete restoring diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index cb9b654..823f51c 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -238,7 +238,7 @@ Snapshot * Simulation::CreateSnapshot() void Simulation::Restore(const Snapshot & snap) { - parts_lastActiveIndex = NPART-1; + parts_lastActiveIndex = NPART-1; std::copy(snap.AirPressure.begin(), snap.AirPressure.end(), &pv[0][0]); std::copy(snap.AirVelocityX.begin(), snap.AirVelocityX.end(), &vx[0][0]); std::copy(snap.AirVelocityY.begin(), snap.AirVelocityY.end(), &vy[0][0]); -- cgit v0.9.2-21-gd62e