From 0f6dcc193ce3d60e849199cbb9e87b1ed289bb6c Mon Sep 17 00:00:00 2001 From: FutureRave Date: Mon, 13 Mar 2023 12:47:15 +0000 Subject: [PATCH] [UserInfo]: Remove redundant lambda function --- src/Components/Modules/GSC/UserInfo.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Components/Modules/GSC/UserInfo.cpp b/src/Components/Modules/GSC/UserInfo.cpp index 0896ece1..aede628b 100644 --- a/src/Components/Modules/GSC/UserInfo.cpp +++ b/src/Components/Modules/GSC/UserInfo.cpp @@ -105,15 +105,7 @@ namespace Components::GSC AddScriptMethods(); - Events::OnVMShutdown([] - { - ClearAllOverrides(); - }); - - Events::OnClientDisconnect([](const int clientNum) - { - // Clear the overrides for UserInfo - ClearClientOverrides(clientNum); - }); + Events::OnVMShutdown(ClearAllOverrides); + Events::OnClientDisconnect(ClearClientOverrides); } }