1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-30 01:36:45 +00:00

Only reset dialogue history of dialogue GUI mode is gone

This commit is contained in:
Capostrophic 2020-05-09 02:01:55 +03:00
parent 12833d66af
commit 45e6a03937

View file

@ -477,6 +477,8 @@ namespace MWGui
void DialogueWindow::onClose()
{
if (MWBase::Environment::get().getWindowManager()->containsMode(GM_Dialogue))
return;
// Reset history
for (DialogueText* text : mHistoryContents)
delete text;