Thread: Bot bug
View Single Post
  #4  
Old 12-29-2012, 11:25 AM
Thuz989
Sarnak
 
Join Date: Jan 2006
Posts: 45
Default

if i updated to 2337 and then replace zonedb.cpp things seem to work fine..

this piece of code seems to cause the problem from 3222..

Code:
	Modify	/trunk/EQEmuServer/zone/zonedb.cpp	diff
...			
2109	2109			}
2110	2110			safe_delete_array(query);
2111	2111		
2112		-		for(i=0; i<BUFF_COUNT; i++) {
2112	+		for(i=0; i < RuleI(Spells, MaxTotalSlotsNPC); i++) {
2113	2113				if (petinfo->Buffs[i].spellid != SPELL_UNKNOWN && petinfo->Buffs[i].spellid != 0) {
2114	2114					database.RunQuery(query, MakeAnyLenString(&query,
2115	2115						"INSERT INTO `character_pet_buffs` (`char_id`, `pet`, `slot`, `spell_id`, `caster_level`, "
...			
2241	2241						continue;
2242	2242		
2243	2243					uint32 slot_id = atoul(row[1]);
2244		-				if(slot_id >= BUFF_COUNT) {
2244	+				if(slot_id >= RuleI(Spells, MaxTotalSlotsNPC)) {
2245	2245						continue;
2246	2246					}
2247	2247
Reply With Quote