From c6599090202c65036385f7b88b9aebde2336ab40 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Sat, 15 Apr 2023 21:52:01 +0200 Subject: [PATCH] Fixed loading of graphs in the GraphEditor. --- src/AnimGraph/AnimGraphResource.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnimGraph/AnimGraphResource.cc b/src/AnimGraph/AnimGraphResource.cc index 44457ff..417d6e6 100644 --- a/src/AnimGraph/AnimGraphResource.cc +++ b/src/AnimGraph/AnimGraphResource.cc @@ -59,7 +59,7 @@ json sSocketToJson(const Socket& socket) { Socket sJsonToSocket(const json& json_data) { Socket result; result.m_type = SocketType::SocketTypeUndefined; - result.m_reference.ptr = nullptr; + result.m_reference.ptr = &result.m_value.int_value; result.m_name = json_data["name"]; std::string type_string = json_data["type"];