Skip to content

Commit

Permalink
Fix unused parameter warning in TF2_SetPlayerClass (#2176)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikusch authored Aug 4, 2024
1 parent 96727a7 commit dd3409b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/include/tf2_stocks.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dd3409b

Please sign in to comment.