Skip to content

Commit

Permalink
Fix not allowing NULL in Weapon_Switch SDKCall (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikusch authored Apr 19, 2023
1 parent 989bdf1 commit 06260ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripting/tf2utils.sp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void OnPluginStart() {
PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual,
"CBaseCombatCharacter::Weapon_Switch()");
PrepSDKCall_SetReturnInfo(SDKType_Bool, SDKPass_Plain);
PrepSDKCall_AddParameter(SDKType_CBaseEntity, SDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_CBaseEntity, SDKPass_Pointer, VDECODE_FLAG_ALLOWNULL);
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
g_SDKCallPlayerWeaponSwitch = EndPrepSDKCall();

Expand Down

0 comments on commit 06260ab

Please sign in to comment.