From 595d41da6bdaf16644ae485318ffffad7e15d5ce Mon Sep 17 00:00:00 2001 From: sTc2201 <41953894+sTc2201@users.noreply.github.com> Date: Thu, 2 Jan 2025 18:02:59 +0100 Subject: [PATCH] Snow volumetric lights fix for preCE (#704) --- source/snow/snow.ixx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/snow/snow.ixx b/source/snow/snow.ixx index 9efceaf8..5e5b77ad 100644 --- a/source/snow/snow.ixx +++ b/source/snow/snow.ixx @@ -628,7 +628,7 @@ public: if (bEnableSnow) { auto light = (rage::CLightSource*)(regs.esi + regs.eax * 1); - *(float*)(regs.esp + 0xEC) = LightVolumeIntensity[std::make_tuple(static_cast(light->mPosition.x), static_cast(light->mPosition.y), static_cast(light->mPosition.z))]; + *(float*)(regs.esp + 0x68) = LightVolumeIntensity[std::make_tuple(static_cast(light->mPosition.x), static_cast(light->mPosition.y), static_cast(light->mPosition.z))]; } else *(float*)(regs.esp + 0x68) = 1.0f;