summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2026-10-24 18:30:53 +0100
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2026-10-25 02:15:02 +0000
commitac133cc9f509a32f90882db5801557d805d59261 (patch)
tree63542c35bf6e588a981799cb17a398c38d660db4 /src
parent4a0b0b72b12360bdb9792731020931718d8991be (diff)
downloadsst-ac133cc9f509a32f90882db5801557d805d59261.tar.gz
sst-ac133cc9f509a32f90882db5801557d805d59261.zip
Fix a stupid crash regression in raw input
The bug was causing a crash if the plugin was reloaded while in a map. Thanks Hayden for reporting.
Diffstat (limited to 'src')
-rw-r--r--src/rinput.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/rinput.c b/src/rinput.c
index 8d3a6d9..1a157e3 100644
--- a/src/rinput.c
+++ b/src/rinput.c
@@ -53,12 +53,8 @@ FEATURE("scalable raw mouse input")
#define USAGE_MOUSE 2
static int cx, cy, rx = 0, ry = 0; // cursor xy, remainder xy
-static union { // space saving
- void *inwin;
- void **vtable_insys;
-} U;
-#define inwin U.inwin
-#define vtable_insys U.vtable_insys
+static void *inwin;
+static void **vtable_insys;
DEF_CVAR_UNREG(m_rawinput, "Use Raw Input for mouse input (SST reimplementation)",
0, CON_ARCHIVE | CON_INIT_HIDDEN)