Skip to content

Commit 7e95218

Browse files
committed
Fix assertion call
1 parent 970d13b commit 7e95218

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripting/tf2utils.sp

+2-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ public int Native_EquipPlayerWearable(Handle plugin, int numParams) {
336336

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

0 commit comments

Comments
 (0)