Fixes party name display (#5182)

* Fixes #5179.
* Fixes players who are not in parties sending out invalid data and possibly crashing the server.
This commit is contained in:
Aleos 2020-07-04 13:54:14 -04:00 committed by GitHub
parent 7d3064c667
commit ff38cf70d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9666,7 +9666,7 @@ void clif_name( struct block_list* src, struct block_list *bl, send_target targe
safestrncpy( packet.name, sd->status.name, NAME_LENGTH );
party_data *p;
party_data *p = nullptr;
if( sd->status.party_id ){
p = party_search( sd->status.party_id );