[UserInfo]: Remove redundant lambda function

This commit is contained in:
FutureRave 2023-03-13 12:47:15 +00:00
parent 09ff8b4fb6
commit 0f6dcc193c
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31

View File

@ -105,15 +105,7 @@ namespace Components::GSC
AddScriptMethods(); AddScriptMethods();
Events::OnVMShutdown([] Events::OnVMShutdown(ClearAllOverrides);
{ Events::OnClientDisconnect(ClearClientOverrides);
ClearAllOverrides();
});
Events::OnClientDisconnect([](const int clientNum)
{
// Clear the overrides for UserInfo
ClearClientOverrides(clientNum);
});
} }
} }