summaryrefslogtreecommitdiff
path: root/modules/csg/csg_shape.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-10-04 14:19:05 +0200
committerGitHub <noreply@github.com>2018-10-04 14:19:05 +0200
commit181af9b48431a5697056c561c9e2edafc7d738f0 (patch)
treed184ffe31ecab4cbcb194fa67f294b80b505cc51 /modules/csg/csg_shape.cpp
parent674b2567ae9fc367c01de1a70f83a62d8a6de071 (diff)
parentf48ee838e7b88a630f9dea76b697eb4626d69abc (diff)
Merge pull request #22713 from akien-mga/fix-warnings
Fix GCC 8 warnings about potentially unitialized variables
Diffstat (limited to 'modules/csg/csg_shape.cpp')
-rw-r--r--modules/csg/csg_shape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp
index 714be16db7..d1ef08dc83 100644
--- a/modules/csg/csg_shape.cpp
+++ b/modules/csg/csg_shape.cpp
@@ -1573,7 +1573,7 @@ CSGBrush *CSGPolygon::_build_brush() {
}
CSGBrush *brush = memnew(CSGBrush);
- int face_count;
+ int face_count = 0;
switch (mode) {
case MODE_DEPTH: face_count = triangles.size() * 2 / 3 + (final_polygon.size()) * 2; break;