Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,11 @@ void W3DTreeBuffer::freeTreeBuffers(void)
//=============================================================================
void W3DTreeBuffer::unitMoved(Object *unit)
{
// Null pointer check to prevent crash when invalid Object pointer is passed
if (unit == NULL) {
return;
}

if (unit->isKindOf(KINDOF_IMMOBILE)) {
// This is the initial positioning of the object, and we don't care. jba. [6/5/2003]
return;
Expand Down Expand Up @@ -2045,3 +2050,7 @@ void W3DTreeBuffer::loadPostProcess( void )







Loading