Fix warning when sending party message (#7350)

Fixes #7344
Thanks @24msz6eo
This commit is contained in:
Vincent Stumpf 2022-10-12 07:04:51 -07:00 committed by GitHub
parent 311cda80af
commit e28fb93f1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8058,7 +8058,7 @@ void clif_party_message( struct party_data& party, uint32 account_id, const char
return;
}
if( len ){
if (len > CHAT_SIZE_MAX) {
ShowWarning( "clif_party_message: Truncated message '%s' (len=%d, max=%" PRIuPTR ", party_id=%d).\n", mes, len, CHAT_SIZE_MAX, party.party.party_id );
len = CHAT_SIZE_MAX;
}