From b9b9f7c0ca3824c670d525e4c46e52cd72f3a8d3 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 24 Sep 2017 14:11:00 -0400 Subject: Fixed Unown form determination --- source/deserialize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/deserialize.c') diff --git a/source/deserialize.c b/source/deserialize.c index e6fdf3b..da2d919 100644 --- a/source/deserialize.c +++ b/source/deserialize.c @@ -203,7 +203,7 @@ cJSON* pokemonToJson(const struct PokemonIntermediate* pki) pki->altAbility); // Handle Unown form. - if (pki->species == 201) + if (__builtin_bswap16(pki->species) == 201) { cJSON_AddNumberToObject( jPoke, -- cgit 1.4.1