Fixed loading built-in library.

This commit is contained in:
Leonardo 2021-01-25 16:58:44 -08:00
parent 88b224daea
commit 41aa31b7a4

View file

@ -1874,7 +1874,7 @@ bool lcPiecesLibrary::LoadBuiltinPieces()
{
std::unique_ptr<lcDiskFile> File(new lcDiskFile(":/resources/library.zip"));
if (!OpenArchive(std::move(File), lcZipFileType::Official))
if (!File->Open(QIODevice::ReadOnly) || !OpenArchive(std::move(File), lcZipFileType::Official))
return false;
lcMemFile PieceFile;