Skip to content

Commit

Permalink
Fix assertion call
Browse files Browse the repository at this point in the history
  • Loading branch information
nosoop committed Nov 15, 2021
1 parent 970d13b commit 7e95218
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 @@ -336,7 +336,8 @@ public int Native_EquipPlayerWearable(Handle plugin, int numParams) {

if (GetEntPropEnt(wearable, Prop_Send, "m_hOwnerEntity") != client) {
// make sure owner is correct; if not, then gamedata is probably out of date
ThrowNativeError("Assertion failed - wearable entity %d not attached to player. "
ThrowNativeError(SP_ERROR_NATIVE,
"Assertion failed - wearable entity %d not attached to player. "
... "Gamedata may need to be updated", wearable);
}
}
Expand Down

0 comments on commit 7e95218

Please sign in to comment.