Changeset 88c0536 in network-game


Ignore:
Timestamp:
Jun 17, 2013, 1:54:45 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
1d0ede1
Parents:
02fa8fd
Message:

Fixed player serialization bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Player.cpp

    r02fa8fd r88c0536  
    144144   memcpy(buffer+46, &this->range, 4);
    145145
    146    strcpy(buffer+46, this->name.c_str());
     146   strcpy(buffer+50, this->name.c_str());
    147147}
    148148
     
    165165   memcpy(&this->range, buffer+46, 4);
    166166
    167    this->name.assign(buffer+46);
     167   this->name.assign(buffer+50);
    168168}
    169169
Note: See TracChangeset for help on using the changeset viewer.