diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-05-12 21:28:45 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-05-12 21:28:45 (GMT) |
| commit | 724c99102e1d2ed3a2c347eedb05d9818bac7513 (patch) | |
| tree | 036b97a683491243f79e42daf65c4f00ecf36c97 /src/simulation/Simulation.cpp | |
| parent | 7128188048395f503b2f70ace2880459acdf7515 (diff) | |
| download | powder-724c99102e1d2ed3a2c347eedb05d9818bac7513.zip powder-724c99102e1d2ed3a2c347eedb05d9818bac7513.tar.gz | |
Stupid git
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 914df7e..41565a2 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -1347,8 +1347,7 @@ void Simulation::create_arc(int sx, int sy, int dx, int dy, int midpoints, int v void Simulation::clear_sim(void) { int i, x, y; - if(signs) - memset(signs, 0, sizeof(sign)*MAXSIGNS); + signs.clear(); memset(bmap, 0, sizeof(bmap)); memset(emap, 0, sizeof(emap)); memset(parts, 0, sizeof(Particle)*NPART); @@ -3806,7 +3805,6 @@ void Simulation::update_particles()//doesn't update the particles themselves, bu Simulation::~Simulation() { - free(signs); delete grav; delete air; } @@ -3844,9 +3842,6 @@ Simulation::Simulation(): pv = air->pv; hv = air->hv; - //Clear signs - signs = (sign*)calloc(MAXSIGNS, sizeof(sign)); - int menuCount; menu_section * msectionsT = LoadMenus(menuCount); memcpy(msections, msectionsT, menuCount * sizeof(menu_section)); |
