diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2024-01-27 13:16:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 14:16:11 +0100 |
commit | 350e6b14636519fb4e5f7297783fbc0fdbad0197 (patch) | |
tree | 49e536c706a1242dad4a039e984b0c60016e2a84 | |
parent | abe5d029e52b695cb05fb2034deebf31560dbc6e (diff) | |
download | NorthstarLauncher-350e6b14636519fb4e5f7297783fbc0fdbad0197.tar.gz NorthstarLauncher-350e6b14636519fb4e5f7297783fbc0fdbad0197.zip |
Remove unused variable in mod concommands (#652)
Remove unused variable that was also leaking memory
-rw-r--r-- | primedev/mods/modmanager.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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); } |