File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
GeneralsMD/Code/GameEngine/Source/GameNetwork Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,7 @@ UnsignedInt NetPacket::GetPacketRouterAckCommandSize(NetCommandMsg *msg) {
465465}
466466
467467UnsignedInt NetPacket::GetDisconnectChatCommandSize (NetCommandMsg *msg) {
468- NetDisconnectChatCommandMsg *cmdMsg = ( NetDisconnectChatCommandMsg *) (msg);
468+ NetDisconnectChatCommandMsg *cmdMsg = static_cast < NetDisconnectChatCommandMsg*> (msg);
469469 UnsignedByte textmsglen = cmdMsg->getText ().getLength ();
470470 return sizeof (NetPacketDisconnectChatCommandHeader) + (textmsglen * sizeof (UnsignedShort));
471471}
@@ -475,7 +475,7 @@ UnsignedInt NetPacket::GetDisconnectVoteCommandSize(NetCommandMsg *msg) {
475475}
476476
477477UnsignedInt NetPacket::GetChatCommandSize (NetCommandMsg *msg) {
478- NetChatCommandMsg *cmdMsg = ( NetChatCommandMsg *) (msg);
478+ NetChatCommandMsg *cmdMsg = static_cast < NetChatCommandMsg*> (msg);
479479 UnsignedByte textmsglen = cmdMsg->getText ().getLength ();
480480 return sizeof (NetPacketChatCommandHeader) + (textmsglen * sizeof (UnsignedShort)) + sizeof (Int);
481481}
You can’t perform that action at this time.
0 commit comments