From cac2bc768e6899d316b7c25c30b47fb24e9c3da0 Mon Sep 17 00:00:00 2001 From: Capostrophic <21265616+Capostrophic@users.noreply.github.com> Date: Wed, 25 Jul 2018 12:34:33 +0300 Subject: [PATCH] Fix NPC "can't teach more" message (bug #4494) --- apps/openmw/mwgui/trainingwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwgui/trainingwindow.cpp b/apps/openmw/mwgui/trainingwindow.cpp index ad925bbff..630ba8ce1 100644 --- a/apps/openmw/mwgui/trainingwindow.cpp +++ b/apps/openmw/mwgui/trainingwindow.cpp @@ -143,7 +143,7 @@ namespace MWGui return; MWMechanics::NpcStats& npcStats = mPtr.getClass().getNpcStats (mPtr); - if (npcStats.getSkill (skillId).getBase () <= pcStats.getSkill (skillId).getBase ()) + if (npcStats.getSkill (skillId).getModified () <= pcStats.getSkill (skillId).getBase ()) { MWBase::Environment::get().getWindowManager()->messageBox ("#{sServiceTrainingWords}"); return;