Browse Source

Fix use-after-free in selhero

pull/5227/head
Gleb Mazovetskiy 4 years ago committed by Anders Jenbo
parent
commit
99fcac822c
  1. 4
      Source/DiabloUI/selhero.cpp

4
Source/DiabloUI/selhero.cpp

@ -345,6 +345,10 @@ void SelheroLoadSelect(int value)
// This means selhero's render loop will render selgame's items, // This means selhero's render loop will render selgame's items,
// which happens to work because the render loops are similar. // which happens to work because the render loops are similar.
selhero_endMenu = false; selhero_endMenu = false;
// Set this to false so that we do not attempt to render difficulty indicators.
selhero_isSavegame = false;
SelheroFree(); SelheroFree();
LoadBackgroundArt("ui_art\\selgame.pcx"); LoadBackgroundArt("ui_art\\selgame.pcx");
selgame_GameSelection_Select(0); selgame_GameSelection_Select(0);

Loading…
Cancel
Save