Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 12, 2006, 9:08:48 AM (18 years ago)
Author:
rennerc
Message:

fixed some bugs

File:
1 edited

Legend:

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

    r7591 r7602  
    5252  /* make sure loadClassId is first synced var because this is read by networkStream */
    5353  assert( syncVarList.size() == 0 );
    54   this->registerVar( new SynchronizeableInt( (int*)&this->getLeafClassID(), (int*)&this->getLeafClassID(), "leafClassId" ) );
     54  mLeafClassId = this->registerVarId( new SynchronizeableInt( (int*)&this->getLeafClassID(), (int*)&this->getLeafClassID(), "leafClassId" ) );
    5555   
    5656  this->registerVar( new SynchronizeableInt( &this->owner, &this->owner, "owner" ) );
     
    189189      for ( int j = 0; j < (*it)->getSize(); it++ )
    190190      {
     191        assert(false);
    191192        stateTo->data[i] = 0;
    192193        i++;
     
    321322void Synchronizeable::varChangeHandler( std::list<int> & id )
    322323{
     324  for ( std::list<int>::iterator it = id.begin(); it != id.end(); it++ )
     325    assert( *it != mLeafClassId );
    323326}
    324327
     
    345348
    346349
     350
Note: See TracChangeset for help on using the changeset viewer.