Merge pull request #831 from diamante0018/develop

[UserInfo]: Remove redundant lambda function
This commit is contained in:
Edo 2023-03-13 13:51:16 +00:00 committed by GitHub
commit a109b85042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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