mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 00:42:24 +00:00
MADS: Fix unloading animations with associated messages
This commit is contained in:
parent
cfd4943647
commit
73a5055438
@ -188,7 +188,8 @@ void Animation::free() {
|
||||
// Remove any kernel messages in use by the animation
|
||||
for (uint i = 0; i < _messages.size(); ++i) {
|
||||
int msgIndex = _messages[i]._kernelMsgIndex;
|
||||
scene._kernelMessages.remove(msgIndex);
|
||||
if (msgIndex >= 0)
|
||||
scene._kernelMessages.remove(msgIndex);
|
||||
}
|
||||
|
||||
_resetFlag = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user