Skip to content

Commit 2b4d48a

Browse files
committed
Fixed a startup crash
1 parent 7d6fff5 commit 2b4d48a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MTA10/core/CCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ void CCore::SetConnected ( bool bConnected )
630630

631631
bool CCore::IsConnected ( void )
632632
{
633-
return m_pLocalGUI->GetMainMenu ( )->GetIsIngame ();
633+
return m_pLocalGUI->GetMainMenu() && m_pLocalGUI->GetMainMenu ( )->GetIsIngame ();
634634
}
635635

636636

MTA10/mods/shared_logic/CMapEventManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ CMapEventManager::CMapEventManager ( void )
2626
CMapEventManager::~CMapEventManager ( void )
2727
{
2828
// If this happens while we're iterating the list, we're screwed
29-
assert ( !m_bIteratingList );
29+
dassert ( !m_bIteratingList );
3030

3131
// This should always be empty when m_bIteratingList is false
32-
assert ( m_TrashCan.empty () );
32+
dassert ( m_TrashCan.empty () );
3333

3434
// Delete all eventhandlers
3535
DeleteAll ();

0 commit comments

Comments
 (0)