ソースを参照

* Fixed party booking search increasing result counter, even when no results were found, causing crashes from r14516 onwards (bugreport:4615, since r14412).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14558 54d463be-8e91-2dee-dedb-b68131a5f0ec
ai4rei 14 年 前
コミット
c1151a7ee3
2 ファイル変更6 行追加1 行削除
  1. 2 0
      Changelog-Trunk.txt
  2. 4 1
      src/map/party.c

+ 2 - 0
Changelog-Trunk.txt

@@ -1,5 +1,7 @@
 Date	Added
 
+2010/12/04
+	* Fixed party booking search increasing result counter, even when no results were found, causing crashes from r14516 onwards (bugreport:4615, since r14412). [Ai4rei]
 2010/12/03
 	* Fixed soul linkers not receiving taekwon angel buffs upon level up (bugreport:3585, since r3657 and r3660, related r6294). [Ai4rei]
 	* Corrected 'chance' in description for bonuses bAddMonsterDropItem and bAddMonsterDropItemGroup (bugreport:4063, partially since r1572). [Ai4rei]

+ 4 - 1
src/map/party.c

@@ -1147,7 +1147,10 @@ void party_booking_search(struct map_session_data *sd, short level, short mapid,
 			if (pb_ad->p_detail.mapid == mapid)
 				result_list[count] = pb_ad;
 		}
-		count++;
+		if( result_list[count] )
+		{
+			count++;
+		}
 	}
 	iter->destroy(iter);
 	clif_PartyBookingSearchAck(sd->fd, result_list, count, more_result);