summaryrefslogtreecommitdiffstats
path: root/servers/rendering_server.cpp
diff options
context:
space:
mode:
authorWilson E. Alvarez <wilson.e.alvarez@rubonnek.com>2023-11-18 17:40:56 -0500
committerWilson E. Alvarez <wilson.e.alvarez@rubonnek.com>2023-12-16 13:36:44 -0500
commita3cb1b096fcecad03562205bd285ebefc816c64a (patch)
tree3966ab0682c6269c60de7b438d51b30ae164ffde /servers/rendering_server.cpp
parent2d0ee20ff30461b6b10f6fdfba87511a0ebc6642 (diff)
downloadredot-engine-a3cb1b096fcecad03562205bd285ebefc816c64a.tar.gz
Add const references detected by clang-tidy
Diffstat (limited to 'servers/rendering_server.cpp')
-rw-r--r--servers/rendering_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp
index b4af27c510..2cefc87e77 100644
--- a/servers/rendering_server.cpp
+++ b/servers/rendering_server.cpp
@@ -103,7 +103,7 @@ PackedInt64Array RenderingServer::_instances_cull_convex_bind(const TypedArray<P
}
Vector<Plane> planes;
for (int i = 0; i < p_convex.size(); ++i) {
- Variant v = p_convex[i];
+ const Variant &v = p_convex[i];
ERR_FAIL_COND_V(v.get_type() != Variant::PLANE, PackedInt64Array());
planes.push_back(v);
}