Changeset 5066e27 in network-game for common


Ignore:
Timestamp:
Dec 26, 2012, 3:50:53 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
01d0d00
Parents:
60776f2
Message:

Appending a null terminator after the player name in the serialize function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Player.cpp

    r60776f2 r5066e27  
    3737
    3838   oss << this->name;
     39   oss.write("\0", 1);
    3940   oss.write((char*)&(this->pos.x), sizeof(int));
    4041   oss.write((char*)&(this->pos.y), sizeof(int));
Note: See TracChangeset for help on using the changeset viewer.