From 4fe501cf80aa23369dfd8d0340c28a1bdaee4607 Mon Sep 17 00:00:00 2001 From: m Date: Fri, 12 May 2023 21:52:08 -0500 Subject: [PATCH] tiny cleanup --- src/client/component/script.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/component/script.cpp b/src/client/component/script.cpp index 6a1da9a7..e02f3ed1 100644 --- a/src/client/component/script.cpp +++ b/src/client/component/script.cpp @@ -16,7 +16,6 @@ namespace script utils::hook::detour db_findxassetheader_hook; utils::hook::detour load_gametype_script_hook; - utils::hook::detour server_script_checksum_hook; utils::hook::detour gscr_get_bgb_remaining_hook; std::unordered_map loaded_scripts; @@ -59,8 +58,7 @@ namespace script loaded_scripts[name] = rawfile; - const auto base_name = name.substr(0, name.size() - 4); // .gsc suffix will be readded by Scr_LoadScript - game::Scr_LoadScript(game::SCRIPTINSTANCE_SERVER, base_name.data()); + game::Scr_LoadScript(game::SCRIPTINSTANCE_SERVER, name.substr(0, name.size() - 4).data()); // .gsc suffix will be readded by Scr_LoadScript } void load_scripts_folder(const std::string& script_dir)