- fixed: DeactivateLight called Activate instead of Deactivate.

This commit is contained in:
Christoph Oelckers 2019-01-03 00:39:42 +01:00 committed by drfrag
parent 1bb9b3b861
commit 17b13f1a60

View file

@ -191,7 +191,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)
@ -239,7 +239,6 @@ void FDynamicLight::ReleaseLight()
if (next != nullptr) next->prev = prev;
prev = nullptr;
FreeList.Push(this);
Printf("Releasing %p\n", this);
}