[Scummvm-git-logs] scummvm master -> 16b2c04453ef9186963974265f2867738a4a0a18
grisenti
noreply at scummvm.org
Tue Dec 19 17:41:38 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
16b2c04453 HPL1: Default initialize struct fields
Commit: 16b2c04453ef9186963974265f2867738a4a0a18
https://github.com/scummvm/scummvm/commit/16b2c04453ef9186963974265f2867738a4a0a18
Author: grisenti (emanuele at grisenti.net)
Date: 2023-12-19T18:41:25+01:00
Commit Message:
HPL1: Default initialize struct fields
Changed paths:
engines/hpl1/engine/math/MeshTypes.h
diff --git a/engines/hpl1/engine/math/MeshTypes.h b/engines/hpl1/engine/math/MeshTypes.h
index d71c4adb3c4..57cefa13d86 100644
--- a/engines/hpl1/engine/math/MeshTypes.h
+++ b/engines/hpl1/engine/math/MeshTypes.h
@@ -53,9 +53,11 @@ typedef tTriangleDataVec::iterator tTriangleDataVecIt;
class cTriEdge {
public:
- int point1, point2;
- mutable int tri1, tri2;
- bool invert_tri2;
+ int point1 = 0;
+ int point2 = 0;
+ mutable int tri1 = 0;
+ mutable int tri2 = 0;
+ bool invert_tri2 = false;
cTriEdge() = default;
constexpr cTriEdge(int alPoint1, int alPoint2, int alTri1, int alTri2) : point1(alPoint1), point2(alPoint2), tri1(alTri1), tri2(alTri2), invert_tri2(false) {
More information about the Scummvm-git-logs
mailing list