Skip to content

Commit

Permalink
Fix missing parameter in Weapon_Switch
Browse files Browse the repository at this point in the history
SDKTools really should be validating this...

Fixes #10.
  • Loading branch information
nosoop committed Dec 29, 2022
1 parent a5ca756 commit 176a814
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripting/tf2utils.sp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <stocksoup/functions>
#include <stocksoup/memory>

#define PLUGIN_VERSION "1.3.0"
#define PLUGIN_VERSION "1.3.1"
public Plugin myinfo = {
name = "TF2 Utils",
author = "nosoop",
Expand Down Expand Up @@ -189,6 +189,7 @@ public void OnPluginStart() {
"CBaseCombatCharacter::Weapon_Switch()");
PrepSDKCall_SetReturnInfo(SDKType_Bool, SDKPass_Plain);
PrepSDKCall_AddParameter(SDKType_CBaseEntity, SDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
g_SDKCallPlayerWeaponSwitch = EndPrepSDKCall();

StartPrepSDKCall(SDKCall_Player);
Expand Down

0 comments on commit 176a814

Please sign in to comment.