remove unecessary allocations

This commit is contained in:
Ricardo Luís Vaz Silva 2024-11-12 16:05:24 -03:00
commit 9466c2d138
3 changed files with 2 additions and 10 deletions

View file

@ -1006,7 +1006,6 @@ void DVisualThinker::Construct()
PT.subsector = nullptr;
cursector = nullptr;
PT.color = 0xffffff;
spr = new HWSprite();
AnimatedTexture.SetNull();
}
@ -1018,11 +1017,6 @@ DVisualThinker::DVisualThinker()
void DVisualThinker::OnDestroy()
{
PT.alpha = 0.0; // stops all rendering.
if(spr)
{
delete spr;
spr = nullptr;
}
Super::OnDestroy();
}