From 350e6b14636519fb4e5f7297783fbc0fdbad0197 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 27 Jan 2024 13:16:11 +0000 Subject: Remove unused variable in mod concommands (#652) Remove unused variable that was also leaking memory --- primedev/mods/modmanager.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'primedev') diff --git a/primedev/mods/modmanager.cpp b/primedev/mods/modmanager.cpp index 8a0eb71d..e1077922 100644 --- a/primedev/mods/modmanager.cpp +++ b/primedev/mods/modmanager.cpp @@ -771,7 +771,6 @@ void ModManager::LoadMods() // make sure command isnt't registered multiple times. if (!g_pCVar->FindCommand(command->Name.c_str())) { - ConCommand* newCommand = new ConCommand(); std::string funcName = command->Function; RegisterConCommand(command->Name.c_str(), ModConCommandCallback, command->HelpString.c_str(), command->Flags); } -- cgit v1.2.3