mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Restore GCC 5 compatibility (#11778)
This commit is contained in:
parent
0c4929f025
commit
7f6306ca96
3 changed files with 7 additions and 6 deletions
|
@ -43,6 +43,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "tileanimation.h"
|
||||
#include "gettext.h"
|
||||
#include "skyparams.h"
|
||||
#include <memory>
|
||||
|
||||
void Client::handleCommand_Deprecated(NetworkPacket* pkt)
|
||||
{
|
||||
|
@ -1559,7 +1560,7 @@ void Client::handleCommand_MediaPush(NetworkPacket *pkt)
|
|||
m_media_pushed_files.insert(filename);
|
||||
|
||||
// create a downloader for this file
|
||||
auto downloader = new SingleMediaDownloader(cached);
|
||||
auto downloader(std::make_shared<SingleMediaDownloader>(cached));
|
||||
m_pending_media_downloads.emplace_back(token, downloader);
|
||||
downloader->addFile(filename, raw_hash);
|
||||
for (const auto &baseurl : m_remote_media_servers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue