diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-04-25 02:04:45 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-04-25 02:05:41 +0100 |
commit | 0a4b1acc10f0e5b9ff62f34d1261909189486cbb (patch) | |
tree | 03dac7e7488437a277a6f27a216a9bcc9d5311fd /src | |
parent | caf2a867bde443738dfcfdfece5257cb3ba3e457 (diff) |
Fix broken con_setvar*() functions - woopsy!
Diffstat (limited to 'src')
-rw-r--r-- | src/con_.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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... |