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:
leper
2017-11-25 06:49:58 +00:00
parent 60801158b5
commit f7206dc77d
14 changed files with 27 additions and 35 deletions
+2 -2
View File
@@ -269,7 +269,7 @@ std::string CNetClient::TestReadGuiMessages()
return r;
}
ScriptInterface& CNetClient::GetScriptInterface()
const ScriptInterface& CNetClient::GetScriptInterface()
{
return m_Game->GetSimulation2()->GetScriptInterface();
}
@@ -328,7 +328,7 @@ void CNetClient::HandleDisconnect(u32 reason)
SetCurrState(NCS_UNCONNECTED);
}
void CNetClient::SendGameSetupMessage(JS::MutableHandleValue attrs, ScriptInterface& scriptInterface)
void CNetClient::SendGameSetupMessage(JS::MutableHandleValue attrs, const ScriptInterface& scriptInterface)
{
CGameSetupMessage gameSetup(scriptInterface);
gameSetup.m_Data = attrs;