[Scummvm-git-logs] scummvm master -> b1add4c2990c50e31ddf643ab7ef4eaa8aee65f6
mduggan
noreply at scummvm.org
Mon Sep 29 09:54:01 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
b1add4c299 ACCESS: Clear arrays explicitly to make Coverity happy
Commit: b1add4c2990c50e31ddf643ab7ef4eaa8aee65f6
https://github.com/scummvm/scummvm/commit/b1add4c2990c50e31ddf643ab7ef4eaa8aee65f6
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2025-09-29T19:53:48+10:00
Commit Message:
ACCESS: Clear arrays explicitly to make Coverity happy
Changed paths:
engines/access/martian/martian_duct.cpp
diff --git a/engines/access/martian/martian_duct.cpp b/engines/access/martian/martian_duct.cpp
index 9d7679728b5..44392d4b13c 100644
--- a/engines/access/martian/martian_duct.cpp
+++ b/engines/access/martian/martian_duct.cpp
@@ -223,9 +223,8 @@ void MartianDuct::applyMatrixToMapData() {
void MartianDuct::updatePrimsAndDraw() {
int16 shapeZDepth[256];
int shapeIndexes[256];
-
- for (uint i = 0; i < _renderShapes.size(); i++)
- shapeZDepth[i] = INT16_MIN;
+ ARRAYCLEAR(shapeIndexes, -1);
+ ARRAYCLEAR(shapeZDepth, (int16)INT16_MIN);
for (uint shpNum = 0; shpNum < _renderShapes.size(); shpNum++) {
const Point3 &pt0 = _renderPoints[_renderShapes[shpNum]._pointIdxs[0]];
More information about the Scummvm-git-logs
mailing list