Fix SetClientViewModel (bug 3941, r=pred)
This commit is contained in:
parent
944c523a49
commit
b11f597521
@ -367,7 +367,7 @@ static cell_t SetClientViewEntity(IPluginContext *pContext, const cell_t *params
|
|||||||
return pContext->ThrowNativeError("Client %d is not in game", params[1]);
|
return pContext->ThrowNativeError("Client %d is not in game", params[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
edict_t *pEdict = PEntityOfEntIndex(gamehelpers->ReferenceToIndex(params[1]));
|
edict_t *pEdict = PEntityOfEntIndex(gamehelpers->ReferenceToIndex(params[2]));
|
||||||
if (!pEdict || pEdict->IsFree())
|
if (!pEdict || pEdict->IsFree())
|
||||||
{
|
{
|
||||||
return pContext->ThrowNativeError("Entity %d is not valid", params[2]);
|
return pContext->ThrowNativeError("Entity %d is not valid", params[2]);
|
||||||
|
Loading…
Reference in New Issue
Block a user