From e9110384cc1d73b793092bf8f77d420b8da7a714 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Sat, 17 Jan 2026 18:53:56 -0500 Subject: [PATCH] Whoops --- src/engine/lighting_engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/lighting_engine.cpp b/src/engine/lighting_engine.cpp index 1605828a6..b004b9fd8 100644 --- a/src/engine/lighting_engine.cpp +++ b/src/engine/lighting_engine.cpp @@ -26,7 +26,7 @@ struct LELight Color gLEAmbientColor = { 127, 127, 127 }; static std::vector sLights; -static s16 sLightID = 0; +static s16 sLightID = -1; static enum LEMode sMode = LE_MODE_AFFECT_ALL_SHADED_AND_COLORED; static enum LEToneMapping sToneMapping = LE_TONE_MAPPING_WEIGHTED; static bool sEnabled = false; @@ -235,7 +235,7 @@ C_FIELD s16 le_add_light(f32 x, f32 y, f32 z, u8 r, u8 g, u8 b, f32 radius, f32 if (sLights.size() >= LE_MAX_LIGHTS) { return -1; } LELight newLight; - newLight.id = sLightID++; + newLight.id = ++sLightID; newLight.posX = x; newLight.posY = y; newLight.posZ = z;