summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 36841b53d..affec0b8c 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -1205,8 +1205,8 @@ ImageSet *Theme::getImageSetFromThemeXml(const std::string &name,
if (rect.grid[0])
{
Image *const image = rect.grid[0];
- const SDL_Rect &rect = image->mBounds;
- if (rect.w && rect.h)
+ const SDL_Rect &rect2 = image->mBounds;
+ if (rect2.w && rect2.h)
{
ResourceManager *const resman = ResourceManager::getInstance();
ImageSet *const imageSet = resman->getSubImageSet(image, w, h);