mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 03:06:29 +00:00
Fix crash in Atlas.
Fixes 6fbf036ae4
Reported by: Stan
Differential Revision: https://code.wildfiregames.com/D3954
This was SVN commit r25425.
This commit is contained in:
@@ -89,11 +89,13 @@ void CGUIManager::SwitchPage(const CStrW& pageName, ScriptInterface* srcScriptIn
|
||||
{
|
||||
// The page stack is cleared (including the script context where initData came from),
|
||||
// therefore we have to clone initData.
|
||||
ScriptRequest rq(srcScriptInterface);
|
||||
|
||||
Script::StructuredClone initDataClone;
|
||||
if (!initData.isUndefined())
|
||||
{
|
||||
ScriptRequest rq(srcScriptInterface);
|
||||
initDataClone = Script::WriteStructuredClone(rq, initData);
|
||||
}
|
||||
|
||||
m_PageStack.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user