Skip to content

Commit

Permalink
Some debug stuff was in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
HumanGamer committed Jun 16, 2022
1 parent e9a88aa commit 2f56c51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engine/source/sim/netObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ void NetObject::clearMaskBits(U32 orMask)

void NetObject::collapseDirtyList()
{
#ifdef TORQUE_DEBUG
Vector<NetObject*> tempV;
for (NetObject* t = mDirtyList; t; t = t->mNextDirtyList)
tempV.push_back(t);
#endif

for (NetObject* obj = mDirtyList; obj; )
{
Expand Down Expand Up @@ -121,10 +123,12 @@ void NetObject::collapseDirtyList()
obj = next;
}
mDirtyList = NULL;
#ifdef TORQUE_DEBUG
for (U32 i = 0; i < tempV.size(); i++)
{
AssertFatal(tempV[i]->mNextDirtyList == NULL && tempV[i]->mPrevDirtyList == NULL && tempV[i]->mDirtyMaskBits == 0, "Error in collapse");
}
#endif
}

//-----------------------------------------------------------------------------
Expand Down

0 comments on commit 2f56c51

Please sign in to comment.