Skip to content

Commit

Permalink
Support PARTNER_NONE in trainerproc
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgriffin committed Apr 21, 2024
1 parent 9e9ba52 commit ef87173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/trainerproc/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ static bool parse_trainer(struct Parser *p, const struct Parsed *parsed, struct
while (match_empty_line(p)) {}
if (!parse_pokemon_header(p, &nickname, &species, &gender, &item))
{
if (i > 0 || is_literal_string(trainer->id, "TRAINER_NONE"))
if (i > 0 || ends_with(trainer->id, "_NONE"))
break;
if (!p->error)
set_parse_error(p, p->location, "expected nickname or species");
Expand Down

0 comments on commit ef87173

Please sign in to comment.