about summary refs log tree commit diff stats
path: root/source/deserialize.c
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-09-24 14:11:00 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-09-24 14:11:00 -0400
commitb9b9f7c0ca3824c670d525e4c46e52cd72f3a8d3 (patch)
tree7fb8f741a4070e4b3b5ea9618c60750783e348bb /source/deserialize.c
parent34e22f57f04180d71772f192dad32df6e82fbe6d (diff)
downloadgen3uploader-b9b9f7c0ca3824c670d525e4c46e52cd72f3a8d3.tar.gz
gen3uploader-b9b9f7c0ca3824c670d525e4c46e52cd72f3a8d3.tar.bz2
gen3uploader-b9b9f7c0ca3824c670d525e4c46e52cd72f3a8d3.zip
Fixed Unown form determination
Diffstat (limited to 'source/deserialize.c')
-rw-r--r--source/deserialize.c2
1 files changed, 1 insertions, 1 deletions
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)
203 pki->altAbility); 203 pki->altAbility);
204 204
205 // Handle Unown form. 205 // Handle Unown form.
206 if (pki->species == 201) 206 if (__builtin_bswap16(pki->species) == 201)
207 { 207 {
208 cJSON_AddNumberToObject( 208 cJSON_AddNumberToObject(
209 jPoke, 209 jPoke,