summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-02-25 03:09:33 (GMT)
committer jacob1 <jfu614@gmail.com>2013-02-25 03:09:33 (GMT)
commit572d099e29135fe059e756059c1ff715ec68474a (patch)
treec6c06df36329ecf0ac7decc56be2aece9e1a0e93 /src/simulation/Simulation.cpp
parent27ac5ab75d361e2933172b6ec1c08b6e7076d1f3 (diff)
downloadpowder-572d099e29135fe059e756059c1ff715ec68474a.zip
powder-572d099e29135fe059e756059c1ff715ec68474a.tar.gz
fix a few more memory errors
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index f9783c9..d64ccf7 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -4918,12 +4918,8 @@ Simulation::Simulation():
memcpy(gmenu, golMenuT, sizeof(gol_menu) * golMenuCount);
free(golMenuT);
- Element_STKM::STKM_init_legs(this, &player, 0);
- player.spwn = 1;
- player.elem = PT_DUST;
- Element_STKM::STKM_init_legs(this, &player2, 0);
- player2.spwn = 1;
- player2.elem = PT_DUST;
+ player.comm = 0;
+ player2.comm = 0;
init_can_move();
clear_sim();