diff options
author | Martin Liska <mliska@suse.cz> | 2020-03-27 13:57:20 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-03-27 13:57:20 +0100 |
commit | c554677c9523a2ab9d25630450e06bfea06f5db9 (patch) | |
tree | d67af85f6711836e0e10f42b007ff00fa720887b /modules/csg/csg_shape.cpp | |
parent | 64470ef6395eb110c3cdd0757e2dfabd517d54de (diff) | |
download | redot-engine-c554677c9523a2ab9d25630450e06bfea06f5db9.tar.gz |
Fix various -Wmaybe-uninitialized (#37352).
Diffstat (limited to 'modules/csg/csg_shape.cpp')
-rw-r--r-- | modules/csg/csg_shape.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 54635ae320..746c66bdf1 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -741,7 +741,7 @@ CSGBrush *CSGMesh::_build_brush() { const Vector3 *vr = avertices.ptr(); Vector<Vector3> anormals = arrays[Mesh::ARRAY_NORMAL]; - const Vector3 *nr; + const Vector3 *nr = NULL; bool nr_used = false; if (anormals.size()) { nr = anormals.ptr(); @@ -749,7 +749,7 @@ CSGBrush *CSGMesh::_build_brush() { } Vector<Vector2> auvs = arrays[Mesh::ARRAY_TEX_UV]; - const Vector2 *uvr; + const Vector2 *uvr = NULL; bool uvr_used = false; if (auvs.size()) { uvr = auvs.ptr(); |