Skip to content

Commit

Permalink
[engine] Initialize members in PackedEntity ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
dimhotepus committed Jan 2, 2025
1 parent 4f45946 commit 7b3dc02
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions engine/packed_entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@

PackedEntity::PackedEntity()
{
m_pData = NULL;
m_pChangeFrameList = NULL;
m_pServerClass = nullptr;
m_pClientClass = nullptr;

m_nEntityIndex = -1;
m_ReferenceCount = -1;

m_pData = nullptr;
m_nBits = -1;
m_pChangeFrameList = nullptr;

m_nSnapshotCreationTick = 0;
m_nShouldCheckCreationTick = 0;
}
Expand Down

0 comments on commit 7b3dc02

Please sign in to comment.