mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 01:45:34 +00:00
Merge pull request #2877 from Assumeru/oops
Fix explicit startscript calls
This commit is contained in:
commit
0eb85ea1ff
1 changed files with 1 additions and 1 deletions
|
@ -114,9 +114,9 @@ namespace MWScript
|
||||||
|
|
||||||
virtual void execute (Interpreter::Runtime& runtime)
|
virtual void execute (Interpreter::Runtime& runtime)
|
||||||
{
|
{
|
||||||
|
MWWorld::Ptr target = R()(runtime, false);
|
||||||
std::string name = runtime.getStringLiteral (runtime[0].mInteger);
|
std::string name = runtime.getStringLiteral (runtime[0].mInteger);
|
||||||
runtime.pop();
|
runtime.pop();
|
||||||
MWWorld::Ptr target = R()(runtime, false);
|
|
||||||
MWBase::Environment::get().getScriptManager()->getGlobalScripts().addScript (name, target);
|
MWBase::Environment::get().getScriptManager()->getGlobalScripts().addScript (name, target);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue