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();