From 3e5ab069a64d1a4cf5c1eec5f4aa5d8dde0aaca7 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 15 Sep 2012 19:52:18 +0200 Subject: [PATCH] remove the const cast --- apps/openmw/mwworld/actionread.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwworld/actionread.cpp b/apps/openmw/mwworld/actionread.cpp index d049bf5b59..f21fd35ec0 100644 --- a/apps/openmw/mwworld/actionread.cpp +++ b/apps/openmw/mwworld/actionread.cpp @@ -45,9 +45,8 @@ namespace MWWorld npcStats.increaseSkill (ref->base->data.skillID, *class_, true); - // Remove skill from the book - /// \todo This will have to be changed later - const_cast(ref->base)->data.skillID = -1; + /// \todo Remove skill from the book. Right now you can read as many times as you want + /// and the skill will still increase. } }