Browse Source

Resolves compile errors

aleos 2 years ago
parent
commit
5676a45908
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/map/chrif.cpp
  2. 1 1
      src/map/clif.cpp

+ 1 - 1
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
 				data.tick = 0; //Negative tick does not necessarily mean that sc has expired
 		} else
 		} else
 			data.tick = INFINITE_TICK; //Infinite duration
 			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.type = i;
 		data.val1 = sce->val1;
 		data.val1 = sce->val1;
 		data.val2 = sce->val2;
 		data.val2 = sce->val2;

+ 1 - 1
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);
 		struct status_change *sc = status_get_sc(bl);
 		const TimerData *td = (sc && sc->getSCE(type) ? get_timer(sc->getSCE(type)->timer) : nullptr);
 		const TimerData *td = (sc && sc->getSCE(type) ? get_timer(sc->getSCE(type)->timer) : nullptr);
 		t_tick tick_total = 0, tick = 0, cur_tick = gettick();
 		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)
 		if (td != nullptr)
 			tick = DIFF_TICK(td->tick, cur_tick);
 			tick = DIFF_TICK(td->tick, cur_tick);