Fix DLCs crashing

This commit is contained in:
GabsPuNs
2026-06-05 18:22:23 -04:00
parent 497d6cb8ce
commit 8f3a5179fd

View File

@@ -124,7 +124,7 @@ BufferedImage::BufferedImage(DLCPack *dlcPack, const wstring& File, bool filenam
D3DXIMAGE_INFO ImageInfo = {};
hr=RenderManager.LoadTextureData(pbData,dwBytes,&ImageInfo,&data[l]);
if (hr == ERROR_SUCCESS)
if (hr != ERROR_SUCCESS)
{
// 4J - If we haven't loaded the non-mipmap version then exit the game
if ( l == 0 )