summaryrefslogtreecommitdiff
path: root/scene/resources/surface_tool.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-12-09 10:23:21 +0100
committerGitHub <noreply@github.com>2020-12-09 10:23:21 +0100
commit0c5d3b838c935e6121bcee57b83fa802d7058cc1 (patch)
treede206bf06d4f6fb280a427a2a907de93f0043bed /scene/resources/surface_tool.cpp
parente5e1277ecd08f1f2980c9cd0490fb932efaa4678 (diff)
parent644f73966002589c36d779fa33b9524a451f56e0 (diff)
Merge pull request #44199 from bruvzg/pvs_fixes_1
PVS-Studio static analyzer fixes
Diffstat (limited to 'scene/resources/surface_tool.cpp')
-rw-r--r--scene/resources/surface_tool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/surface_tool.cpp b/scene/resources/surface_tool.cpp
index 3166067573..7899627048 100644
--- a/scene/resources/surface_tool.cpp
+++ b/scene/resources/surface_tool.cpp
@@ -74,7 +74,7 @@ bool SurfaceTool::Vertex::operator==(const Vertex &p_vertex) const {
}
}
- for (int i = 0; i < RS::ARRAY_CUSTOM_MAX; i++) {
+ for (int i = 0; i < RS::ARRAY_CUSTOM_COUNT; i++) {
if (custom[i] != p_vertex.custom[i]) {
return false;
}