Browse Source

Prevent infinit recursion in UiOkDialog

pull/362/head
Anders Jenbo 7 years ago
parent
commit
feeae23076
  1. 1
      Source/scrollrt.cpp
  2. 2
      SourceX/DiabloUI/dialogs.cpp

1
Source/scrollrt.cpp

@ -2299,7 +2299,6 @@ static void DrawMain(int dwHgt, BOOL draw_desc, BOOL draw_hp, BOOL draw_mana, BO
return;
}
/// ASSERT: assert(ysize >= 0 && ysize <= 480); // SCREEN_HEIGHT
if (ysize > 0) {

2
SourceX/DiabloUI/dialogs.cpp

@ -305,9 +305,11 @@ void UiOkDialog(const char *text, const char *caption, bool error, UiItem *rende
return;
}
gbActive = false;
Init(text, caption, error);
DialogLoop(dialogItems, dialogItemsSize, render_behind, render_behind_size);
Deinit();
gbActive = true;
}
void UiErrorOkDialog(const char *text, const char *caption, UiItem *render_behind, std::size_t render_behind_size)

Loading…
Cancel
Save