Fixed loading primitives from ldrawunf.zip.

This commit is contained in:
Leonardo Zide 2021-03-27 12:15:38 -07:00
parent 594422315a
commit 6042cb8188

View file

@ -1370,7 +1370,7 @@ void lcPiecesLibrary::GetPieceFile(const char* PieceName, std::function<void(lcF
if (!Found)
Found = LoadIncludeFile("ldraw/p/%s", lcZipFileType::Official);
if (mHasUnofficial && !Found)
if (mZipFiles[static_cast<int>(lcZipFileType::Unofficial)] && !Found)
{
Found = LoadIncludeFile("parts/%s", lcZipFileType::Unofficial);