summaryrefslogtreecommitdiff
path: root/src/simulation/SaveLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/SaveLoader.cpp')
-rw-r--r--src/simulation/SaveLoader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simulation/SaveLoader.cpp b/src/simulation/SaveLoader.cpp
index 71748c4..7989d38 100644
--- a/src/simulation/SaveLoader.cpp
+++ b/src/simulation/SaveLoader.cpp
@@ -6,7 +6,7 @@
*/
#include <bzlib.h>
-#include <math.h>
+#include <cmath>
#include "SaveLoader.h"
//!TODO: enum for LoadSave return
@@ -497,7 +497,7 @@ int SaveLoader::PSVLoad(unsigned char * data, int dataLength, Simulation * sim,
}
else
{
- parts[i-1].temp = sim->ptypes[parts[i-1].type].heat;
+ parts[i-1].temp = sim->elements[parts[i-1].type].Temperature;
}
}
}
@@ -607,7 +607,7 @@ int SaveLoader::PSVLoad(unsigned char * data, int dataLength, Simulation * sim,
parts[i-1].tmp2 = parts[i-1].life;
}
}
- if (!sim->ptypes[parts[i-1].type].enabled)
+ if (!sim->elements[parts[i-1].type].Enabled)
parts[i-1].type = PT_NONE;
}
}