Skip to content
Permalink
Browse files

Fix POLO eating PROT ID#0 no matter where it is

  • Loading branch information...
jacob1 committed Apr 10, 2019
1 parent 06e2836 commit 76a92d75d269b4e73e19dd7d1e8e02997fdb3b29
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/simulation/elements/POLO.cpp
@@ -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));

0 comments on commit 76a92d7

Please sign in to comment.
You can’t perform that action at this time.