From 6863777b81ab27d4946a4df40041ad539cf35e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Mu=C3=B1oz?= Date: Fri, 1 Dec 2023 19:51:26 -0300 Subject: [PATCH] Initialize m_pevLastInflictor to nullptr to avoid garbage memory (#901) --- regamedll/public/regamedll/API/CSEntity.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regamedll/public/regamedll/API/CSEntity.h b/regamedll/public/regamedll/API/CSEntity.h index edfb660a..1c26ba58 100644 --- a/regamedll/public/regamedll/API/CSEntity.h +++ b/regamedll/public/regamedll/API/CSEntity.h @@ -33,7 +33,8 @@ class CCSEntity { public: CCSEntity() : - m_pContainingEntity(nullptr) + m_pContainingEntity(nullptr), + m_pevLastInflictor(nullptr) { m_ucDmgPenetrationLevel = 0; }