From da05d9dd98315378bdded216184294f376643191 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 22 Aug 2015 14:14:34 +0300 Subject: Use resource manager as global variable. --- src/gui/popups/itempopup.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gui/popups') diff --git a/src/gui/popups/itempopup.cpp b/src/gui/popups/itempopup.cpp index a97b2480b..a9afe136a 100644 --- a/src/gui/popups/itempopup.cpp +++ b/src/gui/popups/itempopup.cpp @@ -175,10 +175,9 @@ void ItemPopup::setItem(const ItemInfo &item, if (showImage) { - ResourceManager *const resman = ResourceManager::getInstance(); - Image *const image = resman->getImage(combineDye2( - paths.getStringValue("itemIcons").append( - item.getDisplay().image), item.getDyeIconColorsString(color))); + Image *const image = resourceManager->getImage(combineDye2( + paths.getStringValue("itemIcons").append(item.getDisplay().image), + item.getDyeIconColorsString(color))); mIcon->setImage(image); if (image) -- cgit v1.2.3-70-g09d2