mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- 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:
parent
980977d444
commit
b47a3804d2
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue