Skip to content

Commit

Permalink
Initialize m_pevLastInflictor to nullptr to avoid garbage memory (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
dystopm authored Dec 1, 2023
1 parent f882e81 commit 6863777
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion regamedll/public/regamedll/API/CSEntity.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class CCSEntity
{
public:
CCSEntity() :
m_pContainingEntity(nullptr)
m_pContainingEntity(nullptr),
m_pevLastInflictor(nullptr)
{
m_ucDmgPenetrationLevel = 0;
}
Expand Down

0 comments on commit 6863777

Please sign in to comment.