From 32badd4b6f843cb74fdc3238fe92119518c8c0ab Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 16 Mar 2006 15:50:00 +0000 Subject: A bunch of cosmetic changes. --- src/gui/checkbox.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/checkbox.cpp') diff --git a/src/gui/checkbox.cpp b/src/gui/checkbox.cpp index 7506d3c0..ec7eb578 100644 --- a/src/gui/checkbox.cpp +++ b/src/gui/checkbox.cpp @@ -37,10 +37,9 @@ Image *CheckBox::checkBoxDisabledChecked; CheckBox::CheckBox(const std::string& caption, bool marked): gcn::CheckBox(caption, marked) { - ResourceManager *resman = ResourceManager::getInstance(); - if (instances == 0) { + ResourceManager *resman = ResourceManager::getInstance(); Image *checkBox = resman->getImage("graphics/gui/checkbox.png"); checkBoxNormal = checkBox->getSubImage(0, 0, 9, 10); checkBoxChecked = checkBox->getSubImage(9, 0, 9, 10); -- cgit v1.2.3-70-g09d2