Fix off by one

This commit is contained in:
RaveYard 2023-09-09 11:42:02 +02:00 committed by Christoph Oelckers
parent 995de6f71d
commit 8f202a7e96

View file

@ -200,7 +200,7 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou
}
auto& list = RenderState.GetVisibleSurfaceList();
if (list.Size() <= lm_background_updates)
if (list.Size() < lm_background_updates)
{
int index = 0;
for (auto& e : level.levelMesh->Surfaces)