diff --git a/src/map/pc.cpp b/src/map/pc.cpp index ab737fef6f..475b6cf4b6 100755 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -11534,7 +11534,7 @@ void pc_overheat(struct map_session_data *sd, int16 heat) { if (sce) { static std::vector limit = { 150, 200, 280, 360, 450 }; - uint16 skill_lv = cap_value(pc_checkskill(sd, NC_MAINFRAME), 0, limit.size()-1); + uint16 skill_lv = cap_value(pc_checkskill(sd, NC_MAINFRAME), 0, (uint16)(limit.size()-1)); sce->val1 += heat; sce->val1 = cap_value(sce->val1, 0, 1000); diff --git a/src/map/status.cpp b/src/map/status.cpp index abd340a95e..275e50a64d 100644 --- a/src/map/status.cpp +++ b/src/map/status.cpp @@ -14448,7 +14448,7 @@ TIMER_FUNC(status_change_timer){ case SC_OVERHEAT_LIMITPOINT: if (--(sce->val1) >= 0) { // Cooling static std::vector limit = { 150, 200, 280, 360, 450 }; - uint16 skill_lv = (sd ? cap_value(pc_checkskill(sd, NC_MAINFRAME), 0, limit.size()-1) : 0); + uint16 skill_lv = (sd ? cap_value(pc_checkskill(sd, NC_MAINFRAME), 0, (uint16)(limit.size()-1)) : 0); if (sc && sc->data[SC_OVERHEAT]) status_change_end(bl,SC_OVERHEAT,INVALID_TIMER);