From a3cb1b096fcecad03562205bd285ebefc816c64a Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Sat, 18 Nov 2023 17:40:56 -0500 Subject: Add const references detected by clang-tidy --- servers/rendering_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servers/rendering_server.cpp') 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

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); } -- cgit v1.2.3