[Scummvm-git-logs] scummvm master -> 5219ecbedd45c7a266ac81da5409497e412a0879
Strangerke
noreply at scummvm.org
Sat May 18 08:26:01 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:
5219ecbedd BAGEL: Ensure that storage device has been found bedore using it in VildroitFilter (CID 1544844)
Commit: 5219ecbedd45c7a266ac81da5409497e412a0879
https://github.com/scummvm/scummvm/commit/5219ecbedd45c7a266ac81da5409497e412a0879
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2024-05-18T09:25:56+01:00
Commit Message:
BAGEL: Ensure that storage device has been found bedore using it in VildroitFilter (CID 1544844)
Changed paths:
engines/bagel/spacebar/filter.cpp
diff --git a/engines/bagel/spacebar/filter.cpp b/engines/bagel/spacebar/filter.cpp
index c4e28d90fe0..ddac4a099e4 100644
--- a/engines/bagel/spacebar/filter.cpp
+++ b/engines/bagel/spacebar/filter.cpp
@@ -566,6 +566,9 @@ static bool VildroidFilter(CBofBitmap *pBmp, CBofRect *pRect) {
BofPlaySound(cString, SOUND_WAVE | SOUND_ASYNCH);
CBagStorageDev *pWieldSDev = nullptr;
pWieldSDev = g_SDevManager->getStorageDevice("BWIELD_WLD");
+ if (pWieldSDev == nullptr)
+ CBofError::fatalError(ERR_UNKNOWN, "Unable to get storage device 'BWIELD_WLD'");
+
if (chipID == 1)
pWieldSDev->activateLocalObject("GREENCHIP");
else
More information about the Scummvm-git-logs
mailing list