aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Node.cpp')
-rw-r--r--src/engine/Node.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/engine/Node.cpp b/src/engine/Node.cpp
index 11d941a..6860452 100644
--- a/src/engine/Node.cpp
+++ b/src/engine/Node.cpp
@@ -19,7 +19,6 @@
#include <iostream>
#include "raul/Atom.hpp"
-#include "raul/AtomRDF.hpp"
#include "sord/sordmm.hpp"
@@ -164,7 +163,7 @@ Node::add_edge(SharedPtr<Edge> edge)
void
Node::remove_edge(SharedPtr<Edge> edge)
{
- _edges.erase(_edges.find(edge));
+ _edges.erase(std::find(_edges.begin(), _edges.end(), edge));
edges_changed();
}
@@ -221,10 +220,13 @@ Node::write_state(Sord::Model& model)
Sord::Curie(model.world(), "rdf:type"),
Sord::Curie(model.world(), "machina:Node"));
+ std::cerr << "ATOMRDF" << std::endl;
+ /*
model.add_statement(
rdf_id,
Sord::Curie(model.world(), "machina:duration"),
AtomRDF::atom_to_node(model, Atom((float)_duration.to_double())));
+ */
if (_enter_action) {
_enter_action->write_state(model);