summaryrefslogtreecommitdiffhomepage
path: root/src/con_.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-04-25 02:04:45 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-04-25 02:05:41 +0100
commit0a4b1acc10f0e5b9ff62f34d1261909189486cbb (patch)
tree03dac7e7488437a277a6f27a216a9bcc9d5311fd /src/con_.c
parentcaf2a867bde443738dfcfdfece5257cb3ba3e457 (diff)
Fix broken con_setvar*() functions - woopsy!
Diffstat (limited to 'src/con_.c')
-rw-r--r--src/con_.c3
1 files changed, 2 insertions, 1 deletions
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...