浏览代码

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 年之前
父节点
当前提交
ff38cf70d2
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 );