Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2007, 4:40:46 PM (17 years ago)
Author:
scheusso
Message:

corrected errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/PacketDecoder.cc

    r403 r405  
    121121        memcpy( (void*)&(currentState->normsize), (const void*)(data+3*sizeof( int )), sizeof( int ) );
    122122        //since data is not allocated, because it's just a pointer, allocate it with size of gamestatedatastream
    123         currentState->data = (unsigned char*)(malloc( currentState->size ));
     123        currentState->data = (unsigned char*)(malloc( currentState->compsize ));
    124124        //copy the GameStateCompressed data
    125125        memcpy( (void*)(currentState->data), (const void*)(data+4*sizeof( int )), currentState->compsize );
     
    186186{
    187187        cout << "id of GameStateCompressed:   " << data->id << endl;
    188         cout << "size of GameStateCompressed: " << data->size << endl;
     188        cout << "size of GameStateCompressed: " << data->compsize << endl;
    189189}
    190190
Note: See TracChangeset for help on using the changeset viewer.