From 7428d9c68b544109baaa2365129b6fd629e6aebb Mon Sep 17 00:00:00 2001 From: zaCade Date: Thu, 7 Mar 2019 21:32:45 +0100 Subject: [PATCH] BossHP: Add valid client check. Seems somehow clients become invalid or something after one frame. --- _CleanupRequired/BossHP/scripting/BossHP_Ranking.sp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_CleanupRequired/BossHP/scripting/BossHP_Ranking.sp b/_CleanupRequired/BossHP/scripting/BossHP_Ranking.sp index 6151d146..74d04708 100644 --- a/_CleanupRequired/BossHP/scripting/BossHP_Ranking.sp +++ b/_CleanupRequired/BossHP/scripting/BossHP_Ranking.sp @@ -317,6 +317,9 @@ void RequestFrame_Callback(int iPacked) int iOldCash = iPacked&0xFFFF; int iClient = iPacked>>16; + if (!IsValidEntity(iClient) || !IsValidClient(iClient)) + return; + SetEntProp(iClient, Prop_Send, "m_iAccount", iOldCash); }