diff options
Diffstat (limited to 'src/spritecache.cpp')
-rw-r--r-- | src/spritecache.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/spritecache.cpp b/src/spritecache.cpp index 8460f33ed..1c7cc6f78 100644 --- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -229,7 +229,9 @@ static void ResizeSpriteOut(SpriteLoader::Sprite *sprite, ZoomLevel zoom) SpriteLoader::CommonPixel *dst = sprite[zoom].data; const SpriteLoader::CommonPixel *src = sprite[zoom - 1].data; +#ifndef NDEBUG const SpriteLoader::CommonPixel *src_end = src + sprite[zoom - 1].height * sprite[zoom - 1].width; +#endif for (uint y = 0; y < sprite[zoom].height; y++) { const SpriteLoader::CommonPixel *src_ln = src + sprite[zoom - 1].width; |