summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAaron Marks <nymacro@gmail.com>2005-05-08 11:51:24 +0000
committerAaron Marks <nymacro@gmail.com>2005-05-08 11:51:24 +0000
commit370fb80817cffbd9233f73d57b8dc91b4c7016ef (patch)
tree9b1d80bd190ea3003701452d50ff82fbec089768 /src/gui
parentf9776bbe1ddaa68c53e3c6ab61c7895e5478260f (diff)
downloadmana-370fb80817cffbd9233f73d57b8dc91b4c7016ef.tar.gz
mana-370fb80817cffbd9233f73d57b8dc91b4c7016ef.tar.bz2
mana-370fb80817cffbd9233f73d57b8dc91b4c7016ef.tar.xz
mana-370fb80817cffbd9233f73d57b8dc91b4c7016ef.zip
Updated progressbar.cpp to check for NULL colorBar (causing seg fault).
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/progressbar.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/progressbar.cpp b/src/gui/progressbar.cpp
index 6c405d0b..d19ed52d 100644
--- a/src/gui/progressbar.cpp
+++ b/src/gui/progressbar.cpp
@@ -115,7 +115,9 @@ void ProgressBar::setColor(
red = newRed;
green = newGreen;
blue = newBlue;
- colorBar->fillWithColor(red, green, blue);
- colorBar->setAlpha(0.7f);
+ if (colorBar) {
+ colorBar->fillWithColor(red, green, blue);
+ colorBar->setAlpha(0.7f);
+ }
}
}