Try try again

This commit is contained in:
Magnus Norddahl 2024-12-12 23:21:45 +01:00
commit 36d74cf8f9

View file

@ -2036,7 +2036,7 @@ void DoomLevelMesh::SaveLightmapLump(FLevelLocals& doomMap)
for (unsigned int i = 0; i < Lightmap.Tiles.Size(); i++)
{
LightmapTile* tile = &Lightmap.Tiles[i];
if (tile->AtlasLocation.ArrayIndex != -1 || tile->AtlasLocation.ArrayIndex < Lightmap.TextureCount)
if (tile->AtlasLocation.ArrayIndex != -1 && tile->AtlasLocation.ArrayIndex < Lightmap.TextureCount)
{
tileCount++;
pixelCount += tile->AtlasLocation.Area();