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