diff --git a/src/simulation/elements/POLO.cpp b/src/simulation/elements/POLO.cpp index 491ce9add..5aeb7ce1e 100644 --- a/src/simulation/elements/POLO.cpp +++ b/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));