mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 20:53:52 +00:00
Update actionread.cpp
Code cosmetics: Change member variable "mSkillID" to "mSkillId" for Book records.
This commit is contained in:
parent
347fb1ff4b
commit
7bc65ce05b
1 changed files with 2 additions and 2 deletions
|
@ -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<ESM::NPC> *playerRef = actor.get<ESM::NPC>();
|
||||
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue