From d391449bf82a93d04ff3e54a2969fd5911b4a57f Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Fri, 24 Jun 2022 22:12:28 +0200 Subject: [PATCH] fix pointer to function pointer casting --- src/p_saveg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_saveg.c b/src/p_saveg.c index c9187a41..0313d41f 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -273,7 +273,7 @@ static void saveg_read_thinker_t(thinker_t *str) str->next = saveg_readp(); // think_t function; - str->function = saveg_readp(); + str->function = (think_t)(intptr_t)saveg_readp(); // struct thinker_s* cnext; str->cnext = saveg_readp();