diff --git a/src/g_shared/a_dynlight.cpp b/src/g_shared/a_dynlight.cpp index d676977a3..0273f07b5 100644 --- a/src/g_shared/a_dynlight.cpp +++ b/src/g_shared/a_dynlight.cpp @@ -179,7 +179,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(ADynamicLight, ActivateLight, ActivateLight) void DeactivateLight(AActor *self) { - for (auto l : self->AttachedLights) l->Activate(); + for (auto l : self->AttachedLights) l->Deactivate(); } DEFINE_ACTION_FUNCTION_NATIVE(ADynamicLight, DeactivateLight, DeactivateLight)