mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-23 16:33:16 +00:00
Replace CScriptValRooted with JS::Heap<T> and custom tracer for CNetClient
Refs #2462 This was SVN commit r15946.
This commit is contained in:
@@ -395,7 +395,8 @@ CScriptVal PollNetworkClient(ScriptInterface::CxPrivate* pCxPrivate)
|
||||
// Convert from net client context to GUI script context
|
||||
JSContext* cxNet = g_NetClient->GetScriptInterface().GetContext();
|
||||
JSAutoRequest rqNet(cxNet);
|
||||
JS::RootedValue pollNet(cxNet, g_NetClient->GuiPoll().get());
|
||||
JS::RootedValue pollNet(cxNet);
|
||||
g_NetClient->GuiPoll(&pollNet);
|
||||
return pCxPrivate->pScriptInterface->CloneValueFromOtherContext(g_NetClient->GetScriptInterface(), pollNet);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user