- fixed lifetime of ScaleOverrider for Strife dialogues.

This commit is contained in:
Christoph Oelckers 2019-03-19 18:46:20 +01:00
parent a1acc4adc4
commit 561ce41723

View file

@ -374,6 +374,7 @@ void M_StartControlPanel (bool makeSound, bool scaleoverride)
BackbuttonTime = 0;
BackbuttonAlpha = 0;
if (scaleoverride && !CurrentScaleOverrider) CurrentScaleOverrider = new ScaleOverrider;
else if (!scaleoverride && CurrentScaleOverrider) delete CurrentScaleOverrider;
}
//=============================================================================