Skip to content

Commit 350e6b1

Browse files
Remove unused variable in mod concommands (#652)
Remove unused variable that was also leaking memory
1 parent abe5d02 commit 350e6b1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

primedev/mods/modmanager.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,6 @@ void ModManager::LoadMods()
771771
// make sure command isnt't registered multiple times.
772772
if (!g_pCVar->FindCommand(command->Name.c_str()))
773773
{
774-
ConCommand* newCommand = new ConCommand();
775774
std::string funcName = command->Function;
776775
RegisterConCommand(command->Name.c_str(), ModConCommandCallback, command->HelpString.c_str(), command->Flags);
777776
}

0 commit comments

Comments
 (0)