From 0689c664d7d84293b3ccb613b0649a34a2b80519 Mon Sep 17 00:00:00 2001 From: Artem Golubikhin Date: Sun, 8 Oct 2017 22:57:12 +0300 Subject: [PATCH] Fixed passing a temporary string to LIGHT_STYLE (#464) --- modules/engine/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/engine/engine.cpp b/modules/engine/engine.cpp index 2d5ef90f..6946d90c 100644 --- a/modules/engine/engine.cpp +++ b/modules/engine/engine.cpp @@ -561,7 +561,7 @@ static cell AMX_NATIVE_CALL set_lights(AMX *amx, cell *params) { memcpy(glinfo.szLastLights, szLights, ke::Min(iLength, 127)); LightStyleDetour->DisableDetour(); - LIGHT_STYLE(0, szLights); + LIGHT_STYLE(0, glinfo.szLastLights); LightStyleDetour->EnableDetour(); // These make it so that players/weaponmodels look like whatever the lighting is