From 7bc65ce05b5b5417da6fc11fbe6d8187c3b2eda7 Mon Sep 17 00:00:00 2001 From: MAtahualpa Date: Sun, 12 Feb 2017 13:52:11 +0100 Subject: [PATCH] Update actionread.cpp Code cosmetics: Change member variable "mSkillID" to "mSkillId" for Book records. --- apps/openmw/mwworld/actionread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwworld/actionread.cpp b/apps/openmw/mwworld/actionread.cpp index 90e9a375b..ffab2959c 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(); @@ -54,7 +54,7 @@ namespace MWWorld playerRef->mBase->mClass ); - npcStats.increaseSkill (ref->mBase->mData.mSkillID, *class_, true); + npcStats.increaseSkill (ref->mBase->mData.mSkillId, *class_, true); npcStats.flagAsUsed (ref->mBase->mId); }