From ac133cc9f509a32f90882db5801557d805d59261 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 24 Oct 2026 18:30:53 +0100 Subject: 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. --- src/rinput.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/rinput.c') 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) -- cgit v1.2.3-54-g00ecf