|
|
|
@ -517,7 +517,7 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
// Give the script a chance to run once before we do anything else
|
|
|
|
|
// this is important when setting pcskipequip as a reaction to onpcequip being set (bk_treasuryreport does this)
|
|
|
|
|
if (!script.empty() && MWBase::Environment::get().getWorld()->getScriptsEnabled())
|
|
|
|
|
if (!force && !script.empty() && MWBase::Environment::get().getWorld()->getScriptsEnabled())
|
|
|
|
|
{
|
|
|
|
|
MWScript::InterpreterContext interpreterContext (&ptr.getRefData().getLocals(), ptr);
|
|
|
|
|
MWBase::Environment::get().getScriptManager()->run (script, interpreterContext);
|
|
|
|
|