summaryrefslogtreecommitdiff
path: root/lib/block_props.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/block_props.cpp')
-rw-r--r--lib/block_props.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/block_props.cpp b/lib/block_props.cpp
index 6bb20e3..672200b 100644
--- a/lib/block_props.cpp
+++ b/lib/block_props.cpp
@@ -91,9 +91,9 @@ static PMCC prop_access_dispatcher(ActorType &actor, const std::string &key, con
return receiver.message.value;
}
-void Block::_register_property(const std::string &key, PropertyRegistrySptr pr)
+void Block::_register_property(const std::string &key, PMCC pr)
{
- (*this)->block->prop_registry[key] = pr;
+ (*this)->block->prop_registry[key] = pr.as<PropertyRegistrySptr>();
}
void Block::_set_property(const std::string &key, const PMCC &value)