From 5676a459086d8ad7ae54eafdbe61ddff892aabfb Mon Sep 17 00:00:00 2001 From: aleos Date: Wed, 14 Dec 2022 15:08:50 -0500 Subject: [PATCH] Resolves compile errors --- src/map/chrif.cpp | 2 +- src/map/clif.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/chrif.cpp b/src/map/chrif.cpp index 2f51f90e6c..5d132ff770 100644 --- a/src/map/chrif.cpp +++ b/src/map/chrif.cpp @@ -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; diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 735e596099..85d0bae243 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -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);