PDA

View Full Version : Compilation Error.


Kingly_Krab
03-23-2014, 04:44 AM
I got an error with this line:
int dschance = deathsaveslot >= 0 ? c->GetTarget()->GetBuffs()[deathsaveslot].deathSaveSuccessChance : 0;

The error is as follows:
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.
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;
};

joligario
03-23-2014, 10:44 AM
Looks like you didn't update your source all the way. From 20 Feb patch "new spell effects":
...
Removed: death_save_chance and deathsave_aa_chance (no longer used)
...

Kingly_Krab
03-23-2014, 06:55 PM
I actually got my source yesterday.

But yeah, I see where it was removed in the new code. It's weird that I got mine yesterday and it still had it.