Skip to content

Commit

Permalink
Quick hotfix to fix crash on blank Pokemon Data
Browse files Browse the repository at this point in the history
  • Loading branch information
junebug12851 committed Mar 2, 2019
1 parent ce2b9d5 commit 9b8120b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pokered-save-editor",
"productName": "Pokered Save Editor",
"description": "Pokemon Red/Blue Save Editor",
"version": "1.4.0",
"version": "1.4.1",
"repository": {
"type": "git",
"url": "https://github.com/junebug12851/pokered-save-editor.git"
Expand Down
2 changes: 1 addition & 1 deletion src/app/data/savefile-expanded/fragments/PokemonBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class PokemonBox {
let record = this.pkmnArr[this.species - 1];

// Check it's a valid Pokemon (not glitch)
if(record.pokedex == null || record.pokedex == undefined)
if(record == undefined || record.pokedex == null || record.pokedex == undefined)
return false;

return record;
Expand Down

0 comments on commit 9b8120b

Please sign in to comment.