Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2940


Ignore:
Timestamp:
Apr 29, 2009, 7:05:51 PM (16 years ago)
Author:
scheusso
Message:

fixed bug for bidirectional variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp2/src/network/synchronisable/Synchronisable.h

    r2937 r2940  
    186186  {
    187187    if (bidirectional)
     188    {
    188189      syncList.push_back(new SynchronisableVariableBidirectional<const T>(variable, mode, cb));
     190      this->dataSize_ += syncList.back()->getSize(state_);
     191    }
    189192    else
     193    {
    190194      syncList.push_back(new SynchronisableVariable<const T>(variable, mode, cb));
    191     if ( this->state_ == mode )
    192       this->dataSize_ += syncList.back()->getSize(state_);
     195      if ( this->state_ == mode )
     196        this->dataSize_ += syncList.back()->getSize(state_);
     197    }
    193198  }
    194199 
Note: See TracChangeset for help on using the changeset viewer.