diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2018-10-04 14:19:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-04 14:19:05 +0200 |
| commit | 181af9b48431a5697056c561c9e2edafc7d738f0 (patch) | |
| tree | d184ffe31ecab4cbcb194fa67f294b80b505cc51 /modules/csg/csg_shape.cpp | |
| parent | 674b2567ae9fc367c01de1a70f83a62d8a6de071 (diff) | |
| parent | f48ee838e7b88a630f9dea76b697eb4626d69abc (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.cpp | 2 |
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; |