Initialize m_pevLastInflictor to nullptr to avoid garbage memory (#901)

This commit is contained in:
Francisco Muñoz 2023-12-01 19:51:26 -03:00 committed by GitHub
parent f882e81efe
commit 6863777b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,8 @@ class CCSEntity
{ {
public: public:
CCSEntity() : CCSEntity() :
m_pContainingEntity(nullptr) m_pContainingEntity(nullptr),
m_pevLastInflictor(nullptr)
{ {
m_ucDmgPenetrationLevel = 0; m_ucDmgPenetrationLevel = 0;
} }