Skip to content

Commit e18cd66

Browse files
committed
Avoid nullptr usage by not checking the number of players on FFA arenas not installed by server
1 parent 4aed434 commit e18cd66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/network/protocols/server_lobby.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8201,7 +8201,7 @@ void ServerLobby::applyAllFilters(std::set<std::string>& maps, bool use_history)
82018201
while (it != maps.end())
82028202
{
82038203
Track* t = track_manager->getTrack(*it);
8204-
if (t->getMaxArenaPlayers() < max_player)
8204+
if (t && t->getMaxArenaPlayers() < max_player)
82058205
{
82068206
it = maps.erase(it);
82078207
}

0 commit comments

Comments
 (0)