1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00
This commit is contained in:
AlexVinS
2016-08-30 07:13:57 +03:00
parent 0236309d25
commit 7e0c4e1451
2 changed files with 3 additions and 3 deletions

View File

@@ -1284,7 +1284,7 @@ SelectionTab::SelectionTab(CMenuScreen::EState Type, const std::function<void(CM
slider = new CSlider(Point(372, 86), tabType != CMenuScreen::saveGame ? 480 : 430, std::bind(&SelectionTab::sliderMove, this, _1), positions, curItems.size(), 0, false, CSlider::BLUE);
slider->addUsedEvents(WHEEL);
formatIcons = new CAnimation("SCSELC.DEF");
formatIcons = make_unique<CAnimation>("SCSELC.DEF");
formatIcons->load();
sortingBy = _format;
@@ -1314,7 +1314,7 @@ SelectionTab::SelectionTab(CMenuScreen::EState Type, const std::function<void(CM
SelectionTab::~SelectionTab()
{
delete formatIcons;
}
void SelectionTab::sortBy( int criteria )

View File

@@ -149,7 +149,7 @@ public:
class SelectionTab : public CIntObject
{
private:
CAnimation * formatIcons;
std::unique_ptr<CAnimation> formatIcons;
void parseMaps(const std::unordered_set<ResourceID> &files);
void parseGames(const std::unordered_set<ResourceID> &files, bool multi);