Skip to content

Commit

Permalink
Use P_SAVE_TYPE_REF macro
Browse files Browse the repository at this point in the history
  • Loading branch information
rfomin committed Jan 30, 2025
1 parent deb42f4 commit 175afd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prboom2/src/p_saveg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,10 +1118,10 @@ void P_ArchiveThinkers(void) {
{
if (buttonlist[i].btimer != 0)
{
button_t *button;
P_SAVE_BYTE(tc_button);
button_t button = buttonlist[i];
button.line = (line_t *)(button.line - lines);
P_SAVE_TYPE(&button, button_t);
P_SAVE_TYPE_REF(&buttonlist[i], button, button_t);
button->line = (line_t *)(button->line - lines);
}
}

Expand Down

0 comments on commit 175afd6

Please # to comment.