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:
parent
7d3064c667
commit
ff38cf70d2
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user