diff --git a/plugin_sa/game_sa/CEntity.cpp b/plugin_sa/game_sa/CEntity.cpp index b2c14355..2a00e0fc 100644 --- a/plugin_sa/game_sa/CEntity.cpp +++ b/plugin_sa/game_sa/CEntity.cpp @@ -105,9 +105,9 @@ bool CEntity::SetupLighting() return ((bool (__thiscall *)(CEntity *))(*(void ***)this)[19])(this); } -void CEntity::RemoveLighting() +void CEntity::RemoveLighting(bool bReset) { - ((void (__thiscall *)(CEntity *))(*(void ***)this)[20])(this); + ((void (__thiscall *)(CEntity *, bool))(*(void ***)this)[20])(this, bReset); } void CEntity::FlagToDestroyWhenNextProcessed() @@ -371,4 +371,4 @@ void CEntity::RemoveEscalatorsForEntity() bool CEntity::IsEntityOccluded() { return ((bool (__thiscall *)(CEntity*))0x71FAE0)(this); -} \ No newline at end of file +} diff --git a/plugin_sa/game_sa/CEntity.h b/plugin_sa/game_sa/CEntity.h index 30106db4..8ce1936d 100644 --- a/plugin_sa/game_sa/CEntity.h +++ b/plugin_sa/game_sa/CEntity.h @@ -98,7 +98,7 @@ class PLUGIN_API CEntity : public CPlaceable { void PreRender(); void Render(); bool SetupLighting(); - void RemoveLighting(); + void RemoveLighting(bool bReset); void FlagToDestroyWhenNextProcessed(); // funcs