Commit 18fb455e authored by Martin Heistermann's avatar Martin Heistermann
Browse files

ResourceManager fixes

parent 480a1b63
Pipeline #18814 failed with stage
in 9 minutes and 10 seconds
......@@ -168,7 +168,7 @@ template<typename T, typename EntityTag>
std::optional<PropertyPtr<T, EntityTag>>
ResourceManager::create_persistent_property(const std::string& _name, const T _def)
{
auto *prop = internal_find_property<T, EntityTag>(_name);
auto prop = internal_find_property<T, EntityTag>(_name);
if (prop)
return {};
auto ptr = internal_create_property<T, EntityTag>(_name, _def, true);
......@@ -180,7 +180,7 @@ template<typename T, typename EntityTag>
std::optional<PropertyPtr<T, EntityTag>>
ResourceManager::create_shared_property(const std::string& _name, const T _def)
{
auto *prop = internal_find_property<T, EntityTag>(_name);
auto prop = internal_find_property<T, EntityTag>(_name);
if (prop)
return {};
return internal_create_property<T, EntityTag>(_name, _def, true);
......
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