From 175afd62cbf9f8b33c421526c79bc24a043ad313 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Thu, 30 Jan 2025 15:19:53 +0700 Subject: [PATCH] Use P_SAVE_TYPE_REF macro --- prboom2/src/p_saveg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prboom2/src/p_saveg.c b/prboom2/src/p_saveg.c index 467dc68ce..f928b410d 100644 --- a/prboom2/src/p_saveg.c +++ b/prboom2/src/p_saveg.c @@ -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); } }