mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
CGE2: Silence a warning by adding a safeguard in step()
This commit is contained in:
parent
6275f50d80
commit
8654042d05
@ -446,7 +446,7 @@ void Sprite::step(int nr) {
|
||||
|
||||
if (_ext) {
|
||||
V3D p = _pos3D;
|
||||
Seq *seq;
|
||||
Seq *seq = nullptr;
|
||||
|
||||
if (nr < 0)
|
||||
_seqPtr = _ext->_seq[_seqPtr]._next;
|
||||
@ -466,7 +466,7 @@ void Sprite::step(int nr) {
|
||||
warning("Sprite::step()");
|
||||
}
|
||||
}
|
||||
if (seq->_dly >= 0)
|
||||
if (seq && (seq->_dly >= 0))
|
||||
_time = seq->_dly;
|
||||
} else if (_vm->_waitRef && _vm->_waitRef == _ref)
|
||||
_vm->_waitRef = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user