[Scummvm-git-logs] scummvm master -> b6637d3bf7439e9fa51f3b31bc0a523fd6460105

dreammaster noreply at scummvm.org
Thu Nov 20 07:50:55 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:
b6637d3bf7 BAGEL: METAGAME: Fix palette assert when starting boardgame


Commit: b6637d3bf7439e9fa51f3b31bc0a523fd6460105
    https://github.com/scummvm/scummvm/commit/b6637d3bf7439e9fa51f3b31bc0a523fd6460105
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-11-19T23:50:50-08:00

Commit Message:
BAGEL: METAGAME: Fix palette assert when starting boardgame

Changed paths:
    engines/bagel/mfc/dc.cpp


diff --git a/engines/bagel/mfc/dc.cpp b/engines/bagel/mfc/dc.cpp
index 102853863d0..a84a754a3f5 100644
--- a/engines/bagel/mfc/dc.cpp
+++ b/engines/bagel/mfc/dc.cpp
@@ -1076,7 +1076,9 @@ uint32 *CDC::Impl::getPaletteMap(const CDC::Impl *srcImpl) {
 		destPal = dynamic_cast<Graphics::Palette *>(_palette);
 	}
 
-	assert(srcPal && destPal && srcPal->size() == destPal->size());
+	if (!srcPal || srcPal->empty() || !destPal || destPal->empty())
+		return nullptr;
+	assert(srcPal->size() == destPal->size());
 
 	// Create the map
 	Graphics::PaletteLookup palLookup(destPal->data(), destPal->size());




More information about the Scummvm-git-logs mailing list