diff options
Diffstat (limited to 'engines/sci/graphics/view.cpp')
-rw-r--r-- | engines/sci/graphics/view.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp index 71261490e4..b3bc733383 100644 --- a/engines/sci/graphics/view.cpp +++ b/engines/sci/graphics/view.cpp @@ -279,10 +279,8 @@ const CelInfo *GfxView::getCelInfo(int16 loopNo, int16 celNo) const { } uint16 GfxView::getCelCount(int16 loopNo) const { -// assert(_loopCount); -// loopNo = CLIP<int16>(loopNo, 0, _loopCount - 1); - if ((loopNo < 0) || (loopNo >= _loopCount)) - return 0; + assert(_loopCount); + loopNo = CLIP<int16>(loopNo, 0, _loopCount - 1); return _loop[loopNo].celCount; } |