Follow up to 323db7e

Fixes 2 compilation warnings

Thanks to @zEro-trap and Mael
This commit is contained in:
Lemongrass3110 2020-10-22 11:07:07 +02:00
parent 63e42dbd4b
commit 52dbea2fba
2 changed files with 2 additions and 2 deletions

View File

@ -11534,7 +11534,7 @@ void pc_overheat(struct map_session_data *sd, int16 heat) {
if (sce) {
static std::vector<int16> 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);

View File

@ -14448,7 +14448,7 @@ TIMER_FUNC(status_change_timer){
case SC_OVERHEAT_LIMITPOINT:
if (--(sce->val1) >= 0) { // Cooling
static std::vector<int16> 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);