1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-31 23:15:41 +00:00

Merge pull request #2877 from Assumeru/oops

Fix explicit startscript calls
This commit is contained in:
Alexei Dobrohotov 2020-05-26 20:27:25 +03:00 committed by GitHub
commit 0eb85ea1ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,9 +114,9 @@ namespace MWScript
virtual void execute (Interpreter::Runtime& runtime)
{
MWWorld::Ptr target = R()(runtime, false);
std::string name = runtime.getStringLiteral (runtime[0].mInteger);
runtime.pop();
MWWorld::Ptr target = R()(runtime, false);
MWBase::Environment::get().getScriptManager()->getGlobalScripts().addScript (name, target);
}
};