mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
gob - fix valgrind warning: invalid read when animKeysCount equals 0
svn-id: r44716
This commit is contained in:
parent
cbb4f05bf9
commit
7601f1b14f
@ -651,7 +651,7 @@ void Mult_v2::drawAnims(bool &stop) {
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
int16 animKeysCount = _multData->animKeysCount[i];
|
||||
if (_multData->animKeys[i][animKeysCount - 1].frame > _frame)
|
||||
if ((animKeysCount > 0) && ((uint16) _multData->animKeys[i][animKeysCount - 1].frame > _frame))
|
||||
stop = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user