From d42d7486e75a962b88b419b0545d5ee1f92a0d36 Mon Sep 17 00:00:00 2001 From: krawthekrow Date: Sat, 14 Jul 2018 02:00:53 -0400 Subject: [PATCH] allow prop tool to parse particle type for tmp --- src/gui/game/PropertyTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/game/PropertyTool.cpp b/src/gui/game/PropertyTool.cpp index 86cb4b827..09f6ece7c 100644 --- a/src/gui/game/PropertyTool.cpp +++ b/src/gui/game/PropertyTool.cpp @@ -117,7 +117,7 @@ void PropertyWindow::SetProperty() else { int type; - if (properties[property->GetOption().second].Type == StructProperty::ParticleType && (type = sim->GetParticleType(value.ToUtf8())) != -1) + if ((type = sim->GetParticleType(value.ToUtf8())) != -1) { v = type;