diff options
-rw-r--r-- | engines/mads/assets.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/assets.h b/engines/mads/assets.h index 8a0dc2cd44..aa7e188fba 100644 --- a/engines/mads/assets.h +++ b/engines/mads/assets.h @@ -99,8 +99,8 @@ public: int getCount() { return _frameCount; } int getFrameRate() const { return _frameRate; } int getPixelSpeed() const { return _pixelSpeed; } - int getFrameWidth(int index); - int getFrameHeight(int index); + int getFrameWidth(int index) { assert (index < _frameCount); return _frames[index]._bounds.width(); } + int getFrameHeight(int index) { assert (index < _frameCount); return _frames[index]._bounds.height(); } int getMaxFrameWidth() const { return _maxWidth; } int getMaxFrameHeight() const { return _maxHeight; } MSprite *getFrame(int frameIndex); |