From 5332546541e9b52b1ce08363a04f7fa81152592c Mon Sep 17 00:00:00 2001 From: eduard Date: Thu, 6 Dec 2012 13:58:52 +0100 Subject: [PATCH] tradding skill use --- apps/openmw/mwgui/tradewindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/openmw/mwgui/tradewindow.cpp b/apps/openmw/mwgui/tradewindow.cpp index c6a21c461..bde8d9b84 100644 --- a/apps/openmw/mwgui/tradewindow.cpp +++ b/apps/openmw/mwgui/tradewindow.cpp @@ -239,6 +239,14 @@ namespace MWGui MWBase::Environment::get().getDialogueManager()->applyTemporaryDispositionChange(iBarterFailDisposition); return; } + + //skill use! + MWWorld::LiveCellRef *ref = playerPtr.get(); + const ESM::Class *class_ = + MWBase::Environment::get().getWorld()->getStore().get().find ( + ref->mBase->mClass + ); + playerSkill.useSkill(ESM::Skill::Mercantile,*class_); } int iBarterSuccessDisposition = gmst.find("iBarterSuccessDisposition")->getInt();