forked from mirrors/0ad
More ScriptInterface const.
Reviewed By: elexis; some comments by bb Differential Revision: https://code.wildfiregames.com/D863 This was SVN commit r20519.
This commit is contained in:
@@ -105,7 +105,7 @@ public:
|
||||
|
||||
virtual void FlushTurn(const std::vector<SimulationCommand>& commands)
|
||||
{
|
||||
ScriptInterface& scriptInterface = GetSimContext().GetScriptInterface();
|
||||
const ScriptInterface& scriptInterface = GetSimContext().GetScriptInterface();
|
||||
JSContext* cx = scriptInterface.GetContext();
|
||||
JSAutoRequest rq(cx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user