diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-27 12:33:15 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-27 12:33:15 (GMT) |
| commit | dd2fc64793039f696c1afa34a80b54b95ea687f2 (patch) | |
| tree | 382ab6a02bc20b771063b0ef46fca84ec43c2542 /src/simulation/Simulation.cpp | |
| parent | 0ca680f4c8585642b7201d07a3632ed276e5794a (diff) | |
| download | powder-dd2fc64793039f696c1afa34a80b54b95ea687f2.zip powder-dd2fc64793039f696c1afa34a80b54b95ea687f2.tar.gz | |
Fix bug in history restoring where the lastActiveIndex is not updated leading to incomplete restoring
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |
