diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-02 01:23:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-02 01:23:15 +0300 |
commit | b96e34946aa326a9f8dfb80ce34cce9fc219405e (patch) | |
tree | 964b4d36e8a018c0c656b9d52a291202c7dc6704 /src/gui/theme.cpp | |
parent | 91737976634821cef7d1e373ac8bf7a7b2e95a69 (diff) | |
download | ManaVerse-b96e34946aa326a9f8dfb80ce34cce9fc219405e.tar.gz ManaVerse-b96e34946aa326a9f8dfb80ce34cce9fc219405e.tar.bz2 ManaVerse-b96e34946aa326a9f8dfb80ce34cce9fc219405e.tar.xz ManaVerse-b96e34946aa326a9f8dfb80ce34cce9fc219405e.zip |
Add missing checks.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r-- | src/gui/theme.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 8aab63728..98251948f 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -99,8 +99,11 @@ void Skin::updateAlpha(float minimumOpacityAllowed) std::max(static_cast<double>(minimumOpacityAllowed), static_cast<double>(Client::getGuiAlpha()))); - for_each(mBorder.grid, mBorder.grid + 9, - std::bind2nd(std::mem_fun(&Image::setAlpha), alpha)); + for (int i = 0; i < 9; i++) + { + if (mBorder.grid[i]) + mBorder.grid[i]->setAlpha(alpha); + } if (mCloseImage) mCloseImage->setAlpha(alpha); |