Skip to content

Commit

Permalink
Restrict type check to type field
Browse files Browse the repository at this point in the history
  • Loading branch information
LBPHacker authored and jacob1 committed May 7, 2017
1 parent e15bfac commit e1d8e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/game/PropertyTool.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit e1d8e81

Please sign in to comment.