Fix warning.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3459 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -312,7 +312,8 @@ PacketHandler_TeamName(NetConnection *conn, const Packet_TeamName *packet) {
|
|||||||
- sizeof (Packet_TeamName) - 1;
|
- sizeof (Packet_TeamName) - 1;
|
||||||
// The -1 is for not counting the terminating '\0'.
|
// The -1 is for not counting the terminating '\0'.
|
||||||
|
|
||||||
updateTeamName(battleStateData->meleeState, side, packet->name, nameLen);
|
updateTeamName(battleStateData->meleeState, side,
|
||||||
|
(const char *) packet->name, nameLen);
|
||||||
|
|
||||||
// Padding data may follow; it is ignored.
|
// Padding data may follow; it is ignored.
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user