@ -1201,7 +1201,7 @@ namespace MWClass
return ref->mBase->mNpdt12.mGold;
}
bool Npc::isClass(const MWWorld::Ptr& ptr, const std::string &className) const
bool Npc::isClass(const MWWorld::ConstPtr& ptr, const std::string &className) const
{
return Misc::StringUtils::ciEqual(ptr.get<ESM::NPC>()->mBase->mClass, className);
@ -150,7 +150,7 @@ namespace MWClass
virtual int getBaseGold(const MWWorld::ConstPtr& ptr) const;
virtual bool isClass(const MWWorld::Ptr& ptr, const std::string &className) const;
virtual bool isClass(const MWWorld::ConstPtr& ptr, const std::string &className) const;
virtual bool canSwim (const MWWorld::ConstPtr &ptr) const;
@ -404,7 +404,7 @@ namespace MWWorld
throw std::runtime_error("class does not support base gold");
bool Class::isClass(const MWWorld::Ptr& ptr, const std::string &className) const
bool Class::isClass(const MWWorld::ConstPtr& ptr, const std::string &className) const
return false;
@ -322,7 +322,7 @@ namespace MWWorld
/// 0 = nothing, 1 = opening, 2 = closing
virtual int getDoorState (const MWWorld::Ptr &ptr) const;