about summary refs log tree commit diff stats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-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,