|
|
@ -28,7 +28,7 @@ namespace MWScript
|
|
|
|
|
|
|
|
|
|
|
|
if (iter==mScripts.end())
|
|
|
|
if (iter==mScripts.end())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (const ESM::Script *script = mStore.get<ESM::Script>().find (name))
|
|
|
|
if (const ESM::Script *script = mStore.get<ESM::Script>().search(name))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
GlobalScriptDesc desc;
|
|
|
|
GlobalScriptDesc desc;
|
|
|
|
desc.mRunning = true;
|
|
|
|
desc.mRunning = true;
|
|
|
@ -37,6 +37,10 @@ namespace MWScript
|
|
|
|
|
|
|
|
|
|
|
|
mScripts.insert (std::make_pair (name, desc));
|
|
|
|
mScripts.insert (std::make_pair (name, desc));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Log(Debug::Error) << "Failed to add global script " << name << ": script record not found";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!iter->second.mRunning)
|
|
|
|
else if (!iter->second.mRunning)
|
|
|
|
{
|
|
|
|
{
|
|
|
|