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;