- fixed delete calls on FDynamicLight.

This isn't allocated from the system heap so it cannot be freed by it.
This commit is contained in:
Christoph Oelckers 2019-01-04 16:12:39 +01:00
parent 980977d444
commit b47a3804d2

View file

@ -265,7 +265,8 @@ void FDynamicLight::Tick()
{
if (!target)
{
delete this;
// How did we get here? :?
ReleaseLight();
return;
}
@ -273,7 +274,7 @@ void FDynamicLight::Tick()
{
if (!target->state)
{
delete this;
Deactivate();
return;
}
if (target->flags & MF_UNMORPHED)