From 76a92d75d269b4e73e19dd7d1e8e02997fdb3b29 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Tue, 9 Apr 2019 22:11:14 -0400 Subject: [PATCH] Fix POLO eating PROT ID#0 no matter where it is --- src/simulation/elements/POLO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/POLO.cpp b/src/simulation/elements/POLO.cpp index 491ce9add5..5aeb7ce1e5 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));