From dcac22446e3c02295f39560f7c903829713b0a26 Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Fri, 4 Nov 2022 20:08:17 -0700 Subject: [PATCH] SUPER hard to find bug. DISASTEROUS --- gamestate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamestate.c b/gamestate.c index 18504f9..9e1f598 100644 --- a/gamestate.c +++ b/gamestate.c @@ -653,7 +653,7 @@ void ser_var(SerState* ser, char* var_pointer, size_t var_size, const char* name } } -#define SER_VAR_NAME(var_pointer, name) ser_var(ser, (char*)var_pointer, sizeof(var_pointer), name, __FILE__, __LINE__) +#define SER_VAR_NAME(var_pointer, name) ser_var(ser, (char*)var_pointer, sizeof(*var_pointer), name, __FILE__, __LINE__) #define SER_VAR(var_pointer) SER_VAR_NAME(var_pointer, #var_pointer) void ser_V2(SerState* ser, V2* var)