Fix unused parameter warning in TF2_SetPlayerClass (#2176)

This commit is contained in:
Mikusch 2024-08-04 16:17:42 +02:00 committed by GitHub
parent 96727a7610
commit dd3409bb9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -399,6 +399,7 @@ stock TFClassType TF2_GetPlayerClass(int client)
*/
stock void TF2_SetPlayerClass(int client, TFClassType classType, bool weapons=true, bool persistent=true)
{
#pragma unused weapons
SetEntProp(client, Prop_Send, "m_iClass", view_as<int>(classType));
if (persistent)