View Single Post
  #3  
Old 01-08-2009, 11:55 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Anyway, since I'm going to bed, I think it's a gcc thing - you using gcc 4x?
in client.h lines 531, 532 ;
Code:
	void	Client::BotTradeSwapItem(NPC* bot, sint16 lootSlot, uint32 id, sint16 maxCharges, uint32 equipableSlots, bool swap = true);
	void	Client::BotTradeAddItem(uint32 id, sint16 maxCharges, uint32 equipableSlots, int16 lootSlot, NPC* bot, bool addToDb = true);
Replace with this;
Code:
	void	BotTradeSwapItem(NPC* bot, sint16 lootSlot, uint32 id, sint16 maxCharges, uint32 equipableSlots, bool swap = true);
	void	BotTradeAddItem(uint32 id, sint16 maxCharges, uint32 equipableSlots, int16 lootSlot, NPC* bot, bool addToDb = true);
It compiles both ways with me on my gcc 3x but I think the first one is a gcc -related problem, and I'm not sure the second is a correct fix either (you have to test if it compiles) .
Reply With Quote