diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_command.cpp | 2 | ||||
-rw-r--r-- | src/network/network_func.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_command.cpp b/src/network/network_command.cpp index 36a3a1136..9dc483a8f 100644 --- a/src/network/network_command.cpp +++ b/src/network/network_command.cpp @@ -179,7 +179,7 @@ void NetworkClientSocket::Send_Command(Packet *p, const CommandPacket *cp) } if (callback == _callback_table_count) { - DEBUG(net, 0, "Unknown callback. (Pointer: %p) No callback sent", callback); + DEBUG(net, 0, "Unknown callback. (Pointer: %p) No callback sent", cp->callback); callback = 0; // _callback_table[0] == NULL } p->Send_uint8 (callback); diff --git a/src/network/network_func.h b/src/network/network_func.h index 37e19b4d6..dc799fdbd 100644 --- a/src/network/network_func.h +++ b/src/network/network_func.h @@ -74,7 +74,7 @@ void NetworkServerKickClient(ClientID client_id); void NetworkServerBanIP(const char *banip); void NetworkInitChatMessage(); -void CDECL NetworkAddChatMessage(TextColour colour, uint8 duration, const char *message, ...); +void CDECL NetworkAddChatMessage(TextColour colour, uint8 duration, const char *message, ...) WARN_FORMAT(3, 4); void NetworkUndrawChatMessage(); void NetworkChatMessageDailyLoop(); |