Ver Fonte

Fix for offline chars, thanks tgs.

_DS_ há 16 anos atrás
pai
commit
569120e217

+ 2 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

@@ -924,6 +924,8 @@ public final class L2PcInstance extends L2Playable
 
 	public String getAccountName()
 	{
+		if (getClient() == null || getClient().isDetached())
+			return "disconnected";
 		return getClient().getAccountName();
 	}