Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,13 @@ void WOLQuickMatchMenuInit( WindowLayout *layout, void *userData )
{
NetworkLog(ELogVerbosity::LOG_DEBUG, "[QUICKMATCH] GOT START GAME EVENT");

// Check if TheNGMPGame is initialized before dereferencing it
if (!TheNGMPGame)
{
NetworkLog(ELogVerbosity::LOG_DEBUG, "[QUICKMATCH] NO NGMP GAME INSTANCE");
return;
}

// mark everyone as having the map, we dont allow user provided custom maps or map transfers in QM
// TODO_QUICKMATCH: Do this automatically for game type quickmatch, or better yet, do it on the service
for (int i = 0; i < MAX_SLOTS; i++)
Expand All @@ -1164,12 +1171,6 @@ void WOLQuickMatchMenuInit( WindowLayout *layout, void *userData )
return;
}

if (!TheNGMPGame)
{
NetworkLog(ELogVerbosity::LOG_DEBUG, "[QUICKMATCH] NO NGMP GAME INSTANCE");
return;
}


// TODO_NGMP
//SendStatsToOtherPlayers(TheNGMPGame);
Expand Down
Loading