From 08499ea51f6daad9c99d122782ad9c3607752fb3 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 18 Sep 2014 04:26:12 +0200 Subject: [PATCH] Fix Calvus Horatius AiFollow package not being removed after he quits as result of negative profit --- apps/openmw/mwgui/companionwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwgui/companionwindow.cpp b/apps/openmw/mwgui/companionwindow.cpp index a5cc2976b..2dd130b0d 100644 --- a/apps/openmw/mwgui/companionwindow.cpp +++ b/apps/openmw/mwgui/companionwindow.cpp @@ -151,7 +151,8 @@ void CompanionWindow::onMessageBoxButtonClicked(int button) "minimumprofit", mPtr.getClass().getNpcStats(mPtr).getProfit()); MWBase::Environment::get().getWindowManager()->removeGuiMode(GM_Companion); - MWBase::Environment::get().getDialogueManager()->startDialogue (mPtr); + // Important for Calvus' contract script to work properly + MWBase::Environment::get().getWindowManager()->removeGuiMode(GM_Dialogue); } }