diff options
author | Andrei Prykhodko | 2018-07-02 11:31:08 +0300 |
---|---|---|
committer | Andrei Prykhodko | 2018-07-02 11:47:22 +0300 |
commit | 600049ce4dc746ba49dec8859c02649338bb5f4c (patch) | |
tree | b9c6382b65d166bb4b6b89f1b927210874335b1d | |
parent | 114bd5367cac52401d88e548fb0bc84e4ec8627c (diff) | |
download | scummvm-rg350-600049ce4dc746ba49dec8859c02649338bb5f4c.tar.gz scummvm-rg350-600049ce4dc746ba49dec8859c02649338bb5f4c.tar.bz2 scummvm-rg350-600049ce4dc746ba49dec8859c02649338bb5f4c.zip |
PINK: added assert for possible division by zero
-rw-r--r-- | engines/pink/objects/actions/action_still.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); } |