summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/events/SetMetadata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/events/SetMetadata.cpp b/src/engine/events/SetMetadata.cpp
index a6b446d4..ef192b96 100644
--- a/src/engine/events/SetMetadata.cpp
+++ b/src/engine/events/SetMetadata.cpp
@@ -106,8 +106,8 @@ SetMetadata::pre_process()
const bool is_graph_object = Path::is_path(_subject);
_object = is_graph_object
- ? _engine.engine_store()->find_object(Path(_subject.str()))
- : _object = _engine.node_factory()->plugin(_subject);
+ ? _engine.engine_store()->find_object(Path(_subject.str()))
+ : static_cast<Shared::ResourceImpl*>(_engine.node_factory()->plugin(_subject));
if (!_object && (!is_graph_object || !_create)) {
_error = NOT_FOUND;