mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Update actionread.cpp
*grrr* Forgot to change the latter "mSkillID" in line 47...
This commit is contained in:
parent
b4ef9e2314
commit
c46eadae90
@ -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>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user