- Timestamp:
- Dec 12, 2008, 11:47:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/network/packet/Gamestate.cc
r2417 r2419 361 361 362 362 //copy in the zeros 363 for(it=dataMap_.begin(); it!=dataMap_.end(); it++){363 for(it=dataMap_.begin(); it!=dataMap_.end();){ 364 364 oldobjectheader = (synchronisableHeader*)origdata; 365 365 newobjectheader = (synchronisableHeader*)newdata; … … 371 371 memcpy(newdata, origdata, objectsize); 372 372 assert(newobjectheader->dataAvailable==true); 373 ++it; 373 374 }else{ 374 375 *newobjectheader = *oldobjectheader; … … 382 383 } 383 384 ((GamestateHeader*)gdata)->datasize = destsize; 385 assert(destsize==HEADER->datasize); 384 386 assert(destsize!=0); 385 387 return gs;
Note: See TracChangeset
for help on using the changeset viewer.