aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Action.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Action.cpp')
-rw-r--r--src/engine/Action.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/engine/Action.cpp b/src/engine/Action.cpp
index 6cd419d..abea09f 100644
--- a/src/engine/Action.cpp
+++ b/src/engine/Action.cpp
@@ -26,10 +26,7 @@ Action::write_state(Redland::Model& model)
{
using namespace Raul;
- if (!_id.is_valid())
- set_id(Redland::Node::blank_id(model.world()));
-
- model.add_statement(_id,
+ model.add_statement(id(model.world()),
Redland::Node(model.world(), Redland::Node::RESOURCE, "rdf:type"),
Redland::Node(model.world(), Redland::Node::RESOURCE, "machina:Action"));
}