Skip to content

Commit

Permalink
fix for previous commit, make sure .ctype is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Dec 19, 2015
1 parent 139bdd7 commit 74b8ba8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/simulation/elements/STKM.cpp
Expand Up @@ -78,7 +78,8 @@ int Element_STKM::run_stickman(playerst *playerp, UPDATE_FUNC_ARGS) {
float rocketBootsHeadEffectV = 0.3f;// stronger acceleration vertically, to counteract gravity
float rocketBootsFeetEffectV = 0.45f;

STKM_set_element(sim, playerp, parts[i].ctype);
if (parts[i].ctype && sim->IsValidElement(parts[i].ctype))
STKM_set_element(sim, playerp, parts[i].ctype);
playerp->frames++;

//Temperature handling
Expand Down

0 comments on commit 74b8ba8

Please sign in to comment.