mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-22 12:12:16 +00:00
HDB: Fix crash when skipping cinematic
This commit is contained in:
parent
8423774562
commit
7529d3e2b7
@ -400,11 +400,9 @@ void AI::cineCleanup() {
|
||||
}
|
||||
|
||||
void AI::cineAbort() {
|
||||
for (Common::Array<CineCommand *>::iterator it = _cine.begin(); it != _cine.end(); it++) {
|
||||
if ((*it)->cmdType == C_STARTMAP || (*it)->cmdType == C_STOPCINE)
|
||||
_cine[0] = *it;
|
||||
if (it != _cine.begin())
|
||||
_cine.erase(it);
|
||||
for (uint i = 0; i < _cine.size(); i++) {
|
||||
if (_cine[i]->cmdType == C_STARTMAP || _cine[i]->cmdType == C_STOPCINE)
|
||||
_cine[0] = _cine[i];
|
||||
}
|
||||
warning("STUB: Window: closeAll() required");
|
||||
if (_player)
|
||||
|
Loading…
x
Reference in New Issue
Block a user