Skip to content

Commit

Permalink
Return party directly without declaring a variable first
Browse files Browse the repository at this point in the history
Co-authored-by: Rachel <[email protected]>
  • Loading branch information
Viperio19 and lhearachel authored Jan 21, 2025
1 parent 0e27716 commit 83ffa45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/party.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,5 @@ BOOL Party_HasSpecies(const Party *party, int species)

Party *Party_GetFromSavedata(SaveData *saveData)
{
Party *party = (Party *)SaveData_SaveTable(saveData, SAVE_TABLE_ENTRY_PARTY);
return party;
return SaveData_SaveTable(saveData, SAVE_TABLE_ENTRY_PARTY);
}

0 comments on commit 83ffa45

Please sign in to comment.