[Scummvm-git-logs] scummvm master -> 198e28bdd9b3097286a030dab6060f63e7bc1217
sluicebox
noreply at scummvm.org
Wed Mar 6 21:24:42 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:
198e28bdd9 AGI: Add WINNIE error checking when playing sound
Commit: 198e28bdd9b3097286a030dab6060f63e7bc1217
https://github.com/scummvm/scummvm/commit/198e28bdd9b3097286a030dab6060f63e7bc1217
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2024-03-06T14:24:10-07:00
Commit Message:
AGI: Add WINNIE error checking when playing sound
Fixes crash that occurs when attempting to play the wind (sound 10)
Bug #14454
Changed paths:
engines/agi/preagi/winnie.cpp
diff --git a/engines/agi/preagi/winnie.cpp b/engines/agi/preagi/winnie.cpp
index a970eed7359..c6cc790e727 100644
--- a/engines/agi/preagi/winnie.cpp
+++ b/engines/agi/preagi/winnie.cpp
@@ -1148,6 +1148,9 @@ bool WinnieEngine::playSound(ENUM_WTP_SOUND iSound) {
file.close();
_game.sounds[0] = AgiSound::createFromRawResource(data, size, 0, _soundemu);
+ if (_game.sounds[0] == nullptr) {
+ return false;
+ }
_sound->startSound(0, 0);
bool cursorShowing = CursorMan.showMouse(false);
More information about the Scummvm-git-logs
mailing list