Skip to content
Merged
Changes from 2 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
26 changes: 13 additions & 13 deletions GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4160,19 +4160,6 @@ void Object::xfer( Xfer *xfer )
// private status
xfer->xferUnsignedByte( &m_privateStatus );

// OK, now that we have xferred our status bits, it's safe to set the team...
if( xfer->getXferMode() == XFER_LOAD )
{
Team *team = TheTeamFactory->findTeamByID( teamID );
if( team == nullptr )
{
DEBUG_CRASH(( "Object::xfer - Unable to load team" ));
throw SC_INVALID_DATA;
}
const Bool restoring = true;
setOrRestoreTeam( team, restoring );
}

// geometry info
xfer->xferSnapshot( &m_geometryInfo );

Expand Down Expand Up @@ -4224,6 +4211,19 @@ void Object::xfer( Xfer *xfer )
// disabled till frame
xfer->xferUser( m_disabledTillFrame, sizeof( UnsignedInt ) * DISABLED_COUNT );

// OK, now that we have xferred our status bits and disabled data, it's safe to set the team...
Comment thread
Caball009 marked this conversation as resolved.
if( xfer->getXferMode() == XFER_LOAD )
{
Team *team = TheTeamFactory->findTeamByID( teamID );
if( team == nullptr )
{
DEBUG_CRASH(( "Object::xfer - Unable to load team" ));
throw SC_INVALID_DATA;
}
const Bool restoring = true;
setOrRestoreTeam( team, restoring );
}

// special model condition until
xfer->xferUnsignedInt( &m_smcUntil );

Expand Down
Loading