forked from mirrors/0ad
Deep freeze simulation commands to prevent accidental updates. Fixes #3647.
This was SVN commit r17673.
This commit is contained in:
@@ -164,6 +164,7 @@ public:
|
||||
JSContext* cxNew = newScript.GetContext();
|
||||
JSAutoRequest rqNew(cxNew);
|
||||
JS::RootedValue tmpCommand(cxNew, newScript.CloneValueFromOtherContext(oldScript, command.data));
|
||||
newScript.FreezeObject(tmpCommand, true);
|
||||
SimulationCommand cmd(command.player, cxNew, tmpCommand);
|
||||
newCommands.emplace_back(std::move(cmd));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user