Fix crithack desyncs

This commit is contained in:
BenCat07 2020-05-29 16:05:43 +02:00
parent da1b8ed971
commit 45a5fc18b2

View File

@ -922,7 +922,7 @@ public:
else if (!strcmp(event->GetName(), "player_hurt"))
{
int victim = g_IEngine->GetPlayerForUserID(event->GetInt("userid"));
CachedEntity *ent = ENTITY(g_IEngine->GetPlayerForUserID(victim));
CachedEntity *ent = ENTITY(victim);
int health = event->GetInt("health");
// Or Basically, Actual damage dealt