Commit a6fd8742 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed a bug in setting property by deprecated name

parent 9f717609
......@@ -104,7 +104,7 @@ void Platform::setPropertyDefaultValue(const string& property, const string& val
propertyName = deprecatedPropertyReplacements.find(property)->second;
for (int i = 0; i < (int) platformProperties.size(); i++)
if (platformProperties[i] == propertyName) {
defaultProperties[property] = value;
defaultProperties[propertyName] = value;
return;
}
throw OpenMMException("setPropertyDefaultValue: Illegal property name");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment