From 70f91f8345951b34701c4361df947e7a7e990bff Mon Sep 17 00:00:00 2001
From: Asher Baker <asherkin@gmail.com>
Date: Wed, 13 Jun 2012 10:07:02 +0100
Subject: [PATCH] Fixed target client index error in TF2 Disguise native
 (r=me).

---
 extensions/tf2/natives.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extensions/tf2/natives.cpp b/extensions/tf2/natives.cpp
index 41e868fc..3ab9baf3 100644
--- a/extensions/tf2/natives.cpp
+++ b/extensions/tf2/natives.cpp
@@ -175,7 +175,7 @@ cell_t TF2_Disguise(IPluginContext *pContext, const cell_t *params)
 	// Compatibility fix for the newly-added target parameter
 	if (params[0] >= 4 && params[4] > 0 && !(pTarget = UTIL_GetCBaseEntity(params[4], true)))
 	{
-		return pContext->ThrowNativeError("Target client index %d is not valid", params[1]);
+		return pContext->ThrowNativeError("Target client index %d is not valid", params[4]);
 	}
 
 	unsigned char vstk[sizeof(void *) + 2*sizeof(int) + sizeof(bool)];