[Scummvm-git-logs] scummvm master -> dd4fda2766b311e32c41b2cc006cb1fbbb8ccac4
bluegr
noreply at scummvm.org
Wed Oct 2 21:53:20 UTC 2024
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:
dd4fda2766 WINTERMUTE: Fix Windows build
Commit: dd4fda2766b311e32c41b2cc006cb1fbbb8ccac4
https://github.com/scummvm/scummvm/commit/dd4fda2766b311e32c41b2cc006cb1fbbb8ccac4
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2024-10-03T00:53:09+03:00
Commit Message:
WINTERMUTE: Fix Windows build
normalOffset and textureOffset were marked as potentially uninitialized
variables. While this is a false positive, it does break compilation
under Windows, so assigning these two variables a default value is the
easier solution
Changed paths:
engines/wintermute/base/gfx/xskinmesh_loader.cpp
diff --git a/engines/wintermute/base/gfx/xskinmesh_loader.cpp b/engines/wintermute/base/gfx/xskinmesh_loader.cpp
index ab78622445b..24db01fe574 100644
--- a/engines/wintermute/base/gfx/xskinmesh_loader.cpp
+++ b/engines/wintermute/base/gfx/xskinmesh_loader.cpp
@@ -60,7 +60,7 @@ void XSkinMeshLoader::loadMesh(const Common::String &filename, XFileData *xobj,
auto fvf = _dxmesh->getFVF();
uint32 vertexSize = DXGetFVFVertexSize(fvf) / sizeof(float);
float *vertexBuffer = (float *)_dxmesh->getVertexBuffer().ptr();
- uint32 offset = 0, normalOffset, /*diffuseOffset, */textureOffset;
+ uint32 offset = 0, normalOffset = 0, /*diffuseOffset, */textureOffset = 0;
if (fvf & DXFVF_XYZ) {
offset += sizeof(DXVector3) / sizeof(float);
More information about the Scummvm-git-logs
mailing list