summaryrefslogtreecommitdiff
path: root/game/network/network.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-01-08 16:34:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-01-08 16:34:43 +0000
commit8cd0977a3688fa705c83867c57505a47b9269369 (patch)
treeb7b48711051299607077ed31fdf3b3f6dd6cc41f /game/network/network.cpp
parentTidy shadow map creation (diff)
downloadilt-8cd0977a3688fa705c83867c57505a47b9269369.tar.bz2
ilt-8cd0977a3688fa705c83867c57505a47b9269369.tar.xz
ilt-8cd0977a3688fa705c83867c57505a47b9269369.zip
Fix up all the static analyzer warnings
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};
}
}