mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 00:35:23 +00:00
Accept a ConstPtr in LocalScripts::setIgnore
This commit is contained in:
parent
1212c07266
commit
8f9fc87565
@ -63,7 +63,7 @@ namespace
|
||||
|
||||
MWWorld::LocalScripts::LocalScripts (const MWWorld::ESMStore& store) : mStore (store) {}
|
||||
|
||||
void MWWorld::LocalScripts::setIgnore (const Ptr& ptr)
|
||||
void MWWorld::LocalScripts::setIgnore (const ConstPtr& ptr)
|
||||
{
|
||||
mIgnore = ptr;
|
||||
}
|
||||
|
@ -17,14 +17,14 @@ namespace MWWorld
|
||||
{
|
||||
std::list<std::pair<std::string, Ptr> > mScripts;
|
||||
std::list<std::pair<std::string, Ptr> >::iterator mIter;
|
||||
MWWorld::Ptr mIgnore;
|
||||
MWWorld::ConstPtr mIgnore;
|
||||
const MWWorld::ESMStore& mStore;
|
||||
|
||||
public:
|
||||
|
||||
LocalScripts (const MWWorld::ESMStore& store);
|
||||
|
||||
void setIgnore (const Ptr& ptr);
|
||||
void setIgnore (const ConstPtr& ptr);
|
||||
///< Mark a single reference for ignoring during iteration over local scripts (will revoke
|
||||
/// previous ignores).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user