1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

Use json_is_true instead of json_boolean_value

This should lower required version of jansson, which would
let us use 2.5 in Trusty (current version in Travis-CI)

See https://github.com/akheron/jansson/issues/146
This commit is contained in:
Michał Janiszewski
2016-11-09 13:17:21 +01:00
parent 44e9129af5
commit 867de18c96
2 changed files with 4 additions and 4 deletions

View File

@@ -88,9 +88,9 @@ namespace Twitch
json_t * isMod = json_object_get(json, "isMod");
member.Name = json_string_value(name);
member.IsFollower = json_boolean_value(isFollower);
member.IsInChat = json_boolean_value(isInChat);
member.IsMod = json_boolean_value(isMod);
member.IsFollower = json_is_true(isFollower);
member.IsInChat = json_is_true(isInChat);
member.IsMod = json_is_true(isMod);
member.Exists = false;
member.ShouldTrack = false;
return member;