瀏覽代碼

BETA: Fix for for Hero diary from [5145], thanks Vulcan and tukune for report.

Zoey76 13 年之前
父節點
當前提交
1e60f02cf1
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/entity/Hero.java

+ 2 - 4
L2J_Server_BETA/java/com/l2jserver/gameserver/model/entity/Hero.java

@@ -77,11 +77,9 @@ public class Hero
 	
 	private static final Map<Integer, StatsSet> _herocounts = new FastMap<Integer, StatsSet>();
 	private static final Map<Integer, List<StatsSet>> _herofights = new FastMap<Integer, List<StatsSet>>();
-	private static final List<StatsSet> _fights = new FastList<StatsSet>();
 	
 	private static final Map<Integer, List<StatsSet>> _herodiary = new FastMap<Integer, List<StatsSet>>();
 	private static final Map<Integer, String> _heroMessage = new FastMap<Integer, String>();
-	private static final List<StatsSet> _diary = new FastList<StatsSet>();
 	
 	public static final String COUNT = "count";
 	public static final String PLAYED = "played";
@@ -283,7 +281,7 @@ public class Hero
 	
 	public void loadDiary(int charId)
 	{
-		_diary.clear();
+		final List<StatsSet> _diary = new FastList<StatsSet>();
 		int diaryentries = 0;
 		Connection con = null;
 		try
@@ -346,7 +344,7 @@ public class Hero
 	
 	public void loadFights(int charId)
 	{
-		_fights.clear();
+		final List<StatsSet> _fights = new FastList<StatsSet>();
 		StatsSet _herocountdata = new StatsSet();
 		Calendar _data = Calendar.getInstance();
 		_data.set(Calendar.DAY_OF_MONTH, 1);