aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Edge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Edge.cpp')
-rw-r--r--src/engine/Edge.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/Edge.cpp b/src/engine/Edge.cpp
index d1f8240..cb2441d 100644
--- a/src/engine/Edge.cpp
+++ b/src/engine/Edge.cpp
@@ -28,7 +28,7 @@ void
Edge::set(URIInt key, const Raul::Atom& value)
{
if (key == URIs::instance().machina_probability) {
- _probability.set(value.get<float>());
+ _probability = value.get<float>();
}
}
@@ -59,7 +59,7 @@ Edge::write_state(Sord::Model& model)
model.add_statement(
rdf_id,
Sord::URI(model.world(), MACHINA_NS_probability),
- Sord::Literal::decimal(model.world(), _probability.get(), 7));
+ Sord::Literal::decimal(model.world(), _probability, 7));
}
} // namespace machina