Skip to content

Commit

Permalink
Fix POLO eating PROT ID#0 no matter where it is
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Apr 10, 2019
1 parent 06e2836 commit 76a92d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation/elements/POLO.cpp
Expand Up @@ -91,7 +91,7 @@ int Element_POLO::update(UPDATE_FUNC_ARGS)
parts[i].temp = (parts[i].temp+600.0f)/2.0f;
return 1;
}
if (parts[ID(r)].type == PT_PROT)
if (TYP(r) == PT_PROT)
{
parts[i].tmp2++;
sim->kill_part(ID(r));
Expand Down

0 comments on commit 76a92d7

Please sign in to comment.