forked from mirror/openmw-tes3mp
remove the const cast
This commit is contained in:
parent
cf358fa79d
commit
3e5ab069a6
1 changed files with 2 additions and 3 deletions
|
@ -45,9 +45,8 @@ namespace MWWorld
|
||||||
|
|
||||||
npcStats.increaseSkill (ref->base->data.skillID, *class_, true);
|
npcStats.increaseSkill (ref->base->data.skillID, *class_, true);
|
||||||
|
|
||||||
// Remove skill from the book
|
/// \todo Remove skill from the book. Right now you can read as many times as you want
|
||||||
/// \todo This will have to be changed later
|
/// and the skill will still increase.
|
||||||
const_cast<ESM::Book*>(ref->base)->data.skillID = -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue