diff --git a/client/CPreGame.cpp b/client/CPreGame.cpp index 2d23f81bd..91a787b5d 100644 --- a/client/CPreGame.cpp +++ b/client/CPreGame.cpp @@ -1284,7 +1284,7 @@ SelectionTab::SelectionTab(CMenuScreen::EState Type, const std::functionaddUsedEvents(WHEEL); - formatIcons = new CAnimation("SCSELC.DEF"); + formatIcons = make_unique("SCSELC.DEF"); formatIcons->load(); sortingBy = _format; @@ -1314,7 +1314,7 @@ SelectionTab::SelectionTab(CMenuScreen::EState Type, const std::function formatIcons; void parseMaps(const std::unordered_set &files); void parseGames(const std::unordered_set &files, bool multi);