[Scummvm-git-logs] scummvm master -> 9398bd8031dd8b0b000ca5e94264c913eab22358
sev-
noreply at scummvm.org
Tue Dec 1 21:04:30 UTC 2026
This automated email contains information about 3 new commits which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
696ddeaf72 NGI: Fix undefined reference to Scene::sortRenderables<GameObject>
4702327c4d NGI: Fix -Wclass-memaccess warning in b2DynamicTree
9398bd8031 NGI: Fix -Wenum-compare warning in Notebook
Commit: 696ddeaf729a36e0a8aa1f935ba2da09fd7b6fc8
https://github.com/scummvm/scummvm/commit/696ddeaf729a36e0a8aa1f935ba2da09fd7b6fc8
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-12-01T21:57:52+01:00
Commit Message:
NGI: Fix undefined reference to Scene::sortRenderables<GameObject>
Changed paths:
engines/ngi/scene.cpp
diff --git a/engines/ngi/scene.cpp b/engines/ngi/scene.cpp
index 20302c26ad2..9f557612856 100644
--- a/engines/ngi/scene.cpp
+++ b/engines/ngi/scene.cpp
@@ -934,6 +934,9 @@ void Scene::sortRenderables(Common::Array<T *> &list, uint startIndex) {
}
}
+// Inventory::render uses this one from another file
+template void Scene::sortRenderables<GameObject>(Common::Array<GameObject *> &list, uint startIndex);
+
// CRender::SetSrcRect (widescreen flag, CRender +32): a horizontal margin (+24 > 0) turns it on,
// a wider scene turns it off; the scene's drawOffset decides if given (0: no bars)
bool Scene::hasWidescreenBars() const {
Commit: 4702327c4d14d46e823e18326e5594a19bfcbcf5
https://github.com/scummvm/scummvm/commit/4702327c4d14d46e823e18326e5594a19bfcbcf5
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-12-01T21:57:57+01:00
Commit Message:
NGI: Fix -Wclass-memaccess warning in b2DynamicTree
Changed paths:
engines/ngi/box2d/Collision/b2DynamicTree.cpp
diff --git a/engines/ngi/box2d/Collision/b2DynamicTree.cpp b/engines/ngi/box2d/Collision/b2DynamicTree.cpp
index 78ea9051304..74ed0d4ecb9 100644
--- a/engines/ngi/box2d/Collision/b2DynamicTree.cpp
+++ b/engines/ngi/box2d/Collision/b2DynamicTree.cpp
@@ -31,7 +31,7 @@ b2DynamicTree::b2DynamicTree()
m_nodeCapacity = 16;
m_nodeCount = 0;
m_nodes = (b2TreeNode*)b2Alloc(m_nodeCapacity * sizeof(b2TreeNode));
- memset(m_nodes, 0, m_nodeCapacity * sizeof(b2TreeNode));
+ memset((void *)m_nodes, 0, m_nodeCapacity * sizeof(b2TreeNode));
// Build a linked list for the free list.
for (int32 i = 0; i < m_nodeCapacity - 1; ++i)
Commit: 9398bd8031dd8b0b000ca5e94264c913eab22358
https://github.com/scummvm/scummvm/commit/9398bd8031dd8b0b000ca5e94264c913eab22358
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-12-01T21:59:13+01:00
Commit Message:
NGI: Fix -Wenum-compare warning in Notebook
Changed paths:
engines/ngi/fullpipe/notebook.cpp
diff --git a/engines/ngi/fullpipe/notebook.cpp b/engines/ngi/fullpipe/notebook.cpp
index 2999284046c..c3ae700d176 100644
--- a/engines/ngi/fullpipe/notebook.cpp
+++ b/engines/ngi/fullpipe/notebook.cpp
@@ -818,7 +818,7 @@ void Notebook::renderBookmarks() const {
if (i == _current) {
pictures[i] = plain ? kPicBookmark : kPicBookmarkActive;
} else {
- pictures[i] = (alternate && !plain) ? kPicBookmarkGreen : kPicBookmark;
+ pictures[i] = (alternate && !plain) ? (int)kPicBookmarkGreen : (int)kPicBookmark;
alternate = !alternate;
}
depth[i] = _current == -1 ? 0 : (i >= _current ? i - _current : _current - i);
More information about the Scummvm-git-logs
mailing list