[Scummvm-git-logs] scummvm master -> 9a336aaa8714d543ac3d92e3a0ae92957fd1c0b2
criezy
noreply at scummvm.org
Tue Nov 26 22:59:45 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:
9a336aaa87 AGS: Clear all screen overlays in unload_game()
Commit: 9a336aaa8714d543ac3d92e3a0ae92957fd1c0b2
https://github.com/scummvm/scummvm/commit/9a336aaa8714d543ac3d92e3a0ae92957fd1c0b2
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2024-11-26T22:59:39Z
Commit Message:
AGS: Clear all screen overlays in unload_game()
This is what upstream AGS does in the 3.6.1 and master branches,
while our code corresponded to the 3.6.0 branch.
This fixes an issue where deleting the screenoverlay vector later
on would try to access an already cleared SpriteCache.
This sould fix bugs #15488 and bug #15510.
Changed paths:
engines/ags/engine/ac/game.cpp
diff --git a/engines/ags/engine/ac/game.cpp b/engines/ags/engine/ac/game.cpp
index ca76cf24484..d0a47f4d5ae 100644
--- a/engines/ags/engine/ac/game.cpp
+++ b/engines/ags/engine/ac/game.cpp
@@ -394,7 +394,7 @@ void unload_game() {
_GP(guis).clear();
_GP(scrGui).clear();
- remove_screen_overlay(-1);
+ get_overlays().clear();
resetRoomStatuses();
_GP(thisroom).Free();
More information about the Scummvm-git-logs
mailing list