1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-29 22:20:33 +00:00

Merge pull request #2827 from Capostrophic/dialogue

Only reset dialogue history of dialogue GUI mode is gone
This commit is contained in:
Andrei Kortunov 2020-05-09 14:17:09 +04:00 committed by GitHub
commit 300b5b2620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;