From b20fc76ebebc409f15dbbbf950194591a100b704 Mon Sep 17 00:00:00 2001 From: Edo Date: Sat, 3 Sep 2022 09:48:49 +0200 Subject: [PATCH] Fix return type of gsc function --- src/client/component/dedicated.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/component/dedicated.cpp b/src/client/component/dedicated.cpp index 1a441ae..e321b6e 100644 --- a/src/client/component/dedicated.cpp +++ b/src/client/component/dedicated.cpp @@ -107,16 +107,16 @@ namespace dedicated std::this_thread::sleep_for(1ms); } - game::dvar_t* gscr_set_dynamic_dvar() + void gscr_set_dynamic_dvar() { auto s = game::Scr_GetString(0); auto* dvar = game::Dvar_FindVar(s); - if (dvar && !strncmp("scr_", dvar->name, 4)) + if (dvar && !std::strncmp("scr_", dvar->name, 4)) { - return dvar; + return; } - return gscr_set_dynamic_dvar_hook.invoke(); + gscr_set_dynamic_dvar_hook.invoke(); } void kill_server()