HPL1: Fix Cut and Paste Error in Engine Material Manager Code

This was generating a Enum used in Boolean Context GCC compiler warning.
This commit is contained in:
D G Turner 2022-09-19 04:10:29 +01:00 committed by Eugene Sandulenko
parent c91737c5f5
commit 354464ea97
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -317,7 +317,7 @@ iMaterial *cMaterialManager::LoadFromFile(const tString &asName, const tString &
pTex = mpResources->GetTextureManager()->Create1D(sFile, bMipMaps, bCompress,
eTextureType_Normal,
mlTextureSizeLevel);
} else if (eTextureTarget_CubeMap) {
} else if (target == eTextureTarget_CubeMap) {
pTex = mpResources->GetTextureManager()->CreateCubeMap(sFile, bMipMaps, bCompress,
eTextureType_Normal,
mlTextureSizeLevel);