One more save fix
This commit is contained in:
parent
bd3b41cffb
commit
2040be87a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
if (tile->AtlasLocation.ArrayIndex != -1 || tile->AtlasLocation.ArrayIndex < Lightmap.TextureCount)
|
||||
{
|
||||
tileCount++;
|
||||
pixelCount += tile->AtlasLocation.Area();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue