[Scummvm-git-logs] scummvm branch-3-0 -> 75754152d177da2f6959051ad7772b6a46c6ce2a

dreammaster noreply at scummvm.org
Thu Nov 20 07:51:26 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:
75754152d1 BAGEL: METAGAME: Fix palette assert when starting boardgame


Commit: 75754152d177da2f6959051ad7772b6a46c6ce2a
    https://github.com/scummvm/scummvm/commit/75754152d177da2f6959051ad7772b6a46c6ce2a
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-11-19T23:51:18-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