Remove unused variable in mod concommands (#652)

Remove unused variable that was also leaking memory
This commit is contained in:
Jack 2024-01-27 13:16:11 +00:00 committed by GitHub
parent abe5d029e5
commit 350e6b1463
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -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);
}