From 600049ce4dc746ba49dec8859c02649338bb5f4c Mon Sep 17 00:00:00 2001 From: Andrei Prykhodko Date: Mon, 2 Jul 2018 11:31:08 +0300 Subject: PINK: added assert for possible division by zero --- engines/pink/objects/actions/action_still.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/pink/objects/actions/action_still.cpp b/engines/pink/objects/actions/action_still.cpp index d0b27586d4..345b42e4e9 100644 --- a/engines/pink/objects/actions/action_still.cpp +++ b/engines/pink/objects/actions/action_still.cpp @@ -66,7 +66,7 @@ void ActionStill::setFrame(uint frame) { } void ActionStill::nextFrameLooped() { - assert(_decoder.getCurFrame() != -1); + assert(_decoder.getFrameCount() != 0); setFrame((_decoder.getCurFrame() + 1) % _decoder.getFrameCount()); } -- cgit v1.2.3