EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   Compilation Error. (https://www.eqemulator.org/forums/showthread.php?t=37981)

Kingly_Krab 03-23-2014 04:44 AM

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;
};


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":
Code:

...
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.


All times are GMT -4. The time now is 11:51 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.