From bd1525eb9d427fd2687a7b01b202bbf894d907e8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 10 Jun 2018 22:57:34 +0200 Subject: [PATCH] - fixed: ADynamicLight's shadowmap index must be reset when loading a savegame. --- src/g_shared/a_dynlight.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/g_shared/a_dynlight.cpp b/src/g_shared/a_dynlight.cpp index 65fae7176..98d57c4ab 100644 --- a/src/g_shared/a_dynlight.cpp +++ b/src/g_shared/a_dynlight.cpp @@ -152,6 +152,7 @@ void ADynamicLight::PostSerialize() // The default constructor which is used for creating objects before deserialization will not set this variable. // It needs to be true for all placed lights. visibletoplayer = true; + mShadowmapIndex = 1024; LinkLight(); }