aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Controller.cpp')
-rw-r--r--src/engine/Controller.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/engine/Controller.cpp b/src/engine/Controller.cpp
index edde2b1..1b92e5f 100644
--- a/src/engine/Controller.cpp
+++ b/src/engine/Controller.cpp
@@ -15,6 +15,8 @@
* along with Machina. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "raul/log.hpp"
+
#include "client/ClientModel.hpp"
#include "client/ClientObject.hpp"
#include "machina/Controller.hpp"
@@ -139,10 +141,11 @@ Controller::disconnect(uint64_t tail_id, uint64_t head_id)
SharedPtr<Machina::Node> head = PtrCast<Machina::Node>(find(head_id));
SharedPtr<Edge> edge = tail->remove_edge_to(head);
- if (edge)
+ if (edge) {
_client_model.erase_object(edge->id());
- else
+ } else {
Raul::error << "Edge not found" << std::endl;
+ }
}
void