From 0a4b1acc10f0e5b9ff62f34d1261909189486cbb Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 25 Apr 2022 02:04:45 +0100 Subject: Fix broken con_setvar*() functions - woopsy! --- src/con_.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/con_.c b/src/con_.c index b69b1a6..59f5ac4 100644 --- a/src/con_.c +++ b/src/con_.c @@ -515,7 +515,8 @@ GETTER(int, con_getvari, ival) #define SETTER(T, I, N) \ void N(struct con_var *v, T x) { \ - ((void (*VCALLCONV)(struct con_var *, T))(v->vtable_iconvar[I]))(v, x); \ + ((void (*VCALLCONV)(void *, T))(v->vtable_iconvar[I]))( \ + &v->vtable_iconvar, x); \ } // vtable indexes for str/int/float are consistently at the start, hooray. // unfortunately the windows overload ordering meme still applies... -- cgit v1.2.3