summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-02 01:23:15 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-02 01:23:15 +0300
commitb96e34946aa326a9f8dfb80ce34cce9fc219405e (patch)
tree964b4d36e8a018c0c656b9d52a291202c7dc6704 /src/gui/widgets/tab.cpp
parent91737976634821cef7d1e373ac8bf7a7b2e95a69 (diff)
downloadmanaplus-b96e34946aa326a9f8dfb80ce34cce9fc219405e.tar.gz
manaplus-b96e34946aa326a9f8dfb80ce34cce9fc219405e.tar.bz2
manaplus-b96e34946aa326a9f8dfb80ce34cce9fc219405e.tar.xz
manaplus-b96e34946aa326a9f8dfb80ce34cce9fc219405e.zip
Add missing checks.
Diffstat (limited to 'src/gui/widgets/tab.cpp')
-rw-r--r--src/gui/widgets/tab.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp
index 6750ffbbc..73ffff30e 100644
--- a/src/gui/widgets/tab.cpp
+++ b/src/gui/widgets/tab.cpp
@@ -108,6 +108,9 @@ void Tab::init()
for (mode = 0; mode < TAB_COUNT; mode++)
{
tab[mode] = Theme::getImageFromTheme(data[mode].file);
+ if (!tab[mode])
+ continue;
+
a = 0;
for (y = 0; y < 3; y++)
{