Resolves compile errors
This commit is contained in:
parent
1c1bb9892c
commit
5676a45908
@ -1339,7 +1339,7 @@ int chrif_save_scdata(struct map_session_data *sd) { //parses the sc_data of the
|
||||
data.tick = 0; //Negative tick does not necessarily mean that sc has expired
|
||||
} else
|
||||
data.tick = INFINITE_TICK; //Infinite duration
|
||||
data.tick_total = sc->data[i]->tick_total;
|
||||
data.tick_total = sc->getSCE(i)->tick_total;
|
||||
data.type = i;
|
||||
data.val1 = sce->val1;
|
||||
data.val2 = sce->val2;
|
||||
|
||||
@ -6446,7 +6446,7 @@ void clif_efst_status_change_sub(struct block_list *tbl, struct block_list *bl,
|
||||
struct status_change *sc = status_get_sc(bl);
|
||||
const TimerData *td = (sc && sc->getSCE(type) ? get_timer(sc->getSCE(type)->timer) : nullptr);
|
||||
t_tick tick_total = 0, tick = 0, cur_tick = gettick();
|
||||
tick_total = DIFF_TICK(sc->data[type]->tick_total, cur_tick);
|
||||
tick_total = DIFF_TICK(sc->getSCE(type)->tick_total, cur_tick);
|
||||
|
||||
if (td != nullptr)
|
||||
tick = DIFF_TICK(td->tick, cur_tick);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user