summaryrefslogtreecommitdiff
path: root/game/network/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/network/network.cpp')
-rw-r--r--game/network/network.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/network/network.cpp b/game/network/network.cpp
index dd61f9b..59ef7c8 100644
--- a/game/network/network.cpp
+++ b/game/network/network.cpp
@@ -22,11 +22,11 @@ Network::nodeAt(glm::vec3 pos)
Network::NodeInsertion
Network::newNodeAt(glm::vec3 pos)
{
- if (const auto [n, i] = candidateNodeAt(pos); i == NodeIs::NotInNetwork) {
+ if (auto [n, i] = candidateNodeAt(pos); i == NodeIs::NotInNetwork) {
return {*nodes.insert(std::move(n)).first, i};
}
else {
- return {n, NodeIs::InNetwork};
+ return {std::move(n), NodeIs::InNetwork};
}
}