View Single Post
  #1  
Old 03-23-2014, 04:44 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,603
Default Compilation Error.

I got an error with this line:
Code:
int dschance = deathsaveslot >= 0 ? c->GetTarget()->GetBuffs()[deathsaveslot].deathSaveSuccessChance : 0;
The error is as follows:
Code:
Error	831	error C2039: 'deathSaveSuccessChance' : is not a member of 'Buffs_Struct'	C:\EQ\My Source\3-23-2014 Source\Server\zone\command.cpp	11051	1	zone
Here's the struct.
Code:
struct Buffs_Struct {
	uint16	spellid;
	uint8	casterlevel;
	uint16	casterid;		// Maybe change this to a pointer sometime, but gotta make sure it's 0'd when it no longer points to anything
	char	caster_name[64];
	int32	ticsremaining;
	uint32	counters;
	uint32	numhits; //the number of physical hits this buff can take before it fades away, lots of druid armor spells take advantage of this mixed with powerful effects
	uint32	melee_rune;
	uint32	magic_rune;
	uint32	dot_rune;
	int32	caston_x;
	int32	caston_y;
	int32	caston_z;
	int32	ExtraDIChance;
	int16	RootBreakChance; //Not saved to dbase
	bool	persistant_buff;
	bool	client; //True if the caster is a client
	bool	UpdateClient;
};
Reply With Quote