From c46eadae901df729ba81b17dc132a5ea4313630b Mon Sep 17 00:00:00 2001 From: MAtahualpa Date: Sun, 12 Feb 2017 17:17:33 +0100 Subject: [PATCH] Update actionread.cpp *grrr* Forgot to change the latter "mSkillID" in line 47... --- apps/openmw/mwworld/actionread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/actionread.cpp b/apps/openmw/mwworld/actionread.cpp index ffab2959c7..b3ac772aeb 100644 --- a/apps/openmw/mwworld/actionread.cpp +++ b/apps/openmw/mwworld/actionread.cpp @@ -44,7 +44,7 @@ namespace MWWorld MWMechanics::NpcStats& npcStats = actor.getClass().getNpcStats (actor); // Skill gain from books - if (ref->mBase->mData.mSkillId >= 0 && ref->mBase->mData.mSkillID < ESM::Skill::Length + if (ref->mBase->mData.mSkillId >= 0 && ref->mBase->mData.mSkillId < ESM::Skill::Length && !npcStats.hasBeenUsed (ref->mBase->mId)) { MWWorld::LiveCellRef *playerRef = actor.get();