mirror of
https://github.com/yuzu-emu/discord-rpc.git
synced 2024-12-22 13:55:31 +00:00
partyMax is mandatory if partySize is included (#122)
This commit is contained in:
parent
c4201806cf
commit
453222075b
|
@ -138,12 +138,10 @@ size_t JsonWriteRichPresenceObj(char* dest,
|
|||
presence->partyMax) {
|
||||
WriteObject party(writer, "party");
|
||||
WriteOptionalString(writer, "id", presence->partyId);
|
||||
if (presence->partySize) {
|
||||
if (presence->partySize && presence->partyMax) {
|
||||
WriteArray size(writer, "size");
|
||||
writer.Int(presence->partySize);
|
||||
if (0 < presence->partyMax) {
|
||||
writer.Int(presence->partyMax);
|
||||
}
|
||||
writer.Int(presence->partyMax);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue