mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #7493 from Robyt3/Community-Info-Condition-Fix
Fix inverted community parsing conditions
This commit is contained in:
commit
7b16460334
|
@ -1296,13 +1296,13 @@ void CServerBrowser::LoadDDNetServers()
|
|||
continue;
|
||||
}
|
||||
CCommunity NewCommunity(Id, Name, ParsedIconSha256, IconUrl);
|
||||
if(ParseCommunityServers(&NewCommunity, *pServers))
|
||||
if(!ParseCommunityServers(&NewCommunity, *pServers))
|
||||
{
|
||||
log_error("serverbrowser", "invalid community servers (CommunityId=%s)", NewCommunity.Id());
|
||||
continue;
|
||||
}
|
||||
NewCommunity.m_HasFinishes = pFinishes->type == json_array;
|
||||
if(NewCommunity.m_HasFinishes && ParseCommunityFinishes(&NewCommunity, *pFinishes))
|
||||
if(NewCommunity.m_HasFinishes && !ParseCommunityFinishes(&NewCommunity, *pFinishes))
|
||||
{
|
||||
log_error("serverbrowser", "invalid community finishes (CommunityId=%s)", NewCommunity.Id());
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue