1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-29 04:06:40 +00:00

inherit target ID when starting a script from another script

This commit is contained in:
Marc Zinnschlag 2014-07-17 13:37:57 +02:00
parent 27c84d6cb7
commit 8952154488

View file

@ -26,7 +26,7 @@ namespace Interpreter
{ {
std::string name = runtime.getStringLiteral (runtime[0].mInteger); std::string name = runtime.getStringLiteral (runtime[0].mInteger);
runtime.pop(); runtime.pop();
runtime.getContext().startScript (name); runtime.getContext().startScript (name, runtime.getContext().getTargetId());
} }
}; };