Ver código fonte

Fixes party name display (#5182)

* Fixes #5179.
* Fixes players who are not in parties sending out invalid data and possibly crashing the server.
Aleos 4 anos atrás
pai
commit
ff38cf70d2
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/map/clif.cpp

+ 1 - 1
src/map/clif.cpp

@@ -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 );