Explorar o código

Fixes party name display (#5182)

* Fixes #5179.
* Fixes players who are not in parties sending out invalid data and possibly crashing the server.
Aleos %!s(int64=4) %!d(string=hai) anos
pai
achega
ff38cf70d2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );