summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-07-10 20:59:10 (GMT)
committer jacob1 <jfu614@gmail.com>2013-07-10 20:59:10 (GMT)
commit3203e597b9546d85c3eff887ea4f01e051ebbba0 (patch)
tree9170e9f21628af7aed013daf96b365afc58c9fde /src/simulation/Simulation.cpp
parente7a3fd1c29bdc3f16fc6c04ce36f7268adb55092 (diff)
downloadpowder-3203e597b9546d85c3eff887ea4f01e051ebbba0.zip
powder-3203e597b9546d85c3eff887ea4f01e051ebbba0.tar.gz
fix piston bugs, fix crashes, don't use bluescreens when compiled with debug mode in visual studio
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 5d40529..747a019 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -308,7 +308,7 @@ void Simulation::Restore(const Snapshot & snap)
{
parts_lastActiveIndex = NPART-1;
- for(int i; i<NPART; i++)
+ for(int i = 0; i<NPART; i++)
elementCount[i] = 0;
std::copy(snap.AirPressure.begin(), snap.AirPressure.end(), &pv[0][0]);