Permalink
Browse files

Restrict type check to type field

  • Loading branch information...
LBPHacker authored and jacob1 committed May 6, 2017
1 parent e15bfac commit e1d8e814a5a46913989b7fddc2eb3fb42b54a5e6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/game/PropertyTool.cpp
@@ -139,7 +139,7 @@ void PropertyWindow::SetProperty()
}
}
if (properties[property->GetOption().second].Type == StructProperty::ParticleType && (v < 0 || v >= PT_NUM || !sim->elements[v].Enabled))
if (properties[property->GetOption().second].Name == "type" && (v < 0 || v >= PT_NUM || !sim->elements[v].Enabled))
{
new ErrorMessage("Could not set property", "Invalid particle type");
return;

0 comments on commit e1d8e81

Please sign in to comment.