Fixed damage properties by name failing if no properties were found

This commit is contained in:
Stefan Zermatten
2021-03-02 14:10:14 +02:00
parent 2c0496b44b
commit 28e1fcabd5

View File

@@ -50,7 +50,7 @@ const damagePropertiesByName = new ValidatedMethod({
damagePropertyWork({property, operation, value}); damagePropertyWork({property, operation, value});
lastProperty = property; lastProperty = property;
}); });
recomputePropertyDependencies(lastProperty); if (lastProperty) recomputePropertyDependencies(lastProperty);
} }
}); });