[Scummvm-git-logs] scummvm master -> ba6d6c65ca7ce5fbe18603ada6c0969e2d419783
Strangerke
noreply at scummvm.org
Sat May 18 08:18:55 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:
ba6d6c65ca BAGEL: Fix potential null dereferencing (CID 1544820, 1544876)
Commit: ba6d6c65ca7ce5fbe18603ada6c0969e2d419783
https://github.com/scummvm/scummvm/commit/ba6d6c65ca7ce5fbe18603ada6c0969e2d419783
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2024-05-18T09:18:48+01:00
Commit Message:
BAGEL: Fix potential null dereferencing (CID 1544820, 1544876)
Changed paths:
engines/bagel/spacebar/computer.cpp
diff --git a/engines/bagel/spacebar/computer.cpp b/engines/bagel/spacebar/computer.cpp
index eb77f253a5a..dc800ecdbec 100644
--- a/engines/bagel/spacebar/computer.cpp
+++ b/engines/bagel/spacebar/computer.cpp
@@ -529,8 +529,10 @@ void SBarComputer::setOff() {
_nDrinkSelect = -1;
- _pDrinkBox->hide();
- _pIngBox->hide();
+ if (_pDrinkBox != nullptr)
+ _pDrinkBox->hide();
+ if (_pIngBox != nullptr)
+ _pIngBox->hide();
deleteTextBox();
More information about the Scummvm-git-logs
mailing list