File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -481,6 +481,7 @@ void CWebCore::OnPostScreenshot()
481
481
482
482
void CWebCore::OnFPSLimitChange (std::uint16_t fps)
483
483
{
484
+ dassert (g_pCore->GetNetwork () != nullptr ); // Ensure network module is loaded
484
485
for (auto & webView : m_WebViews)
485
486
{
486
487
webView->GetCefBrowser ()->GetHost ()->SetWindowlessFrameRate (fps);
Original file line number Diff line number Diff line change @@ -1837,7 +1837,8 @@ void CCore::OnGameTimerUpdate()
1837
1837
1838
1838
void CCore::OnFPSLimitChange (std::uint16_t fps)
1839
1839
{
1840
- GetWebCore ()->OnFPSLimitChange (fps); // Update core's webcore FPS limit
1840
+ if (m_pNet != nullptr ) // We have to wait for the network module to be loaded
1841
+ GetWebCore ()->OnFPSLimitChange (fps);
1841
1842
}
1842
1843
1843
1844
//
You can’t perform that action at this time.
0 commit comments