Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2006, 4:48:27 PM (18 years ago)
Author:
rennerc
Message:

fixed some bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/synchronizeable.cc

    r7565 r7575  
    4141  this->networkStream = NULL;
    4242  this->bSynchronize = false;
    43   this->mLeafClassId = getLeafClassID();
    44 
     43 
    4544  if( State::isOnline())
    4645  {
     
    5352  /* make sure loadClassId is first synced var because this is read by networkStream */
    5453  assert( syncVarList.size() == 0 );
    55   this->registerVar( new SynchronizeableInt( &this->mLeafClassId, &this->mLeafClassId, "leafClassId" ) );
    56  
     54  this->registerVar( new SynchronizeableInt( (int*)&this->getLeafClassID(), (int*)&this->getLeafClassID(), "leafClassId" ) );
     55   
    5756  this->registerVar( new SynchronizeableInt( &this->owner, &this->owner, "owner" ) );
    5857  this->registerVar( new SynchronizeableString( &this->objectName, &this->objectName, "objectName" ) );
     
    309308  this->varChangeHandler( changes );
    310309
    311   assert( i == length -1 );
     310  assert( i == length );
    312311
    313312  return length;
Note: See TracChangeset for help on using the changeset viewer.