mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
remove the const cast
This commit is contained in:
parent
cf358fa79d
commit
3e5ab069a6
@ -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…
x
Reference in New Issue
Block a user