aboutsummaryrefslogtreecommitdiff
path: root/src/con_.h
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-06-05 01:57:25 +0100
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-06-06 21:34:39 +0100
commit4d220c77c2172d5272ed586b4a2f45968eda3403 (patch)
tree7594fcaacb85618b09bab36960322bde836d1808 /src/con_.h
parent78325572c1b2ae617dd5502ab726bfded1fd0506 (diff)
downloadsst-4d220c77c2172d5272ed586b4a2f45968eda3403.tar.gz
sst-4d220c77c2172d5272ed586b4a2f45968eda3403.zip
Mildly optimise some console variable stuff
Turns out, some stuff that was done virtually and/or indirectly and/or conditionally to match the engine never really needed to be done as such. Considering this codebase is in fact not part of the engine.
Diffstat (limited to 'src/con_.h')
-rw-r--r--src/con_.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/con_.h b/src/con_.h
index 0dd50a5..8fc9756 100644
--- a/src/con_.h
+++ b/src/con_.h
@@ -266,7 +266,7 @@ extern struct _con_vtab_iconvar_wrap {
.cb = &func, \
.use_newcb = true \
}; \
- struct con_cmd *varname = (struct con_cmd *)&_ccmd_##varname;
+ struct con_cmd *varname = &_ccmd_##varname;
/* Defines a command with a given function as its handler. */
#define DEF_CCMD(name, desc, func, flags) \