Преглед изворни кода

Fixes a RENEWAL_CAST compile warning (#7137)

* Fixes a compile warning when RENEWAL is enabled but RENEWAL_CAST is disabled.
Thanks to @Pokye and @Lemongrass3110!
Aleos пре 2 година
родитељ
комит
97b5f3b4ac
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/map/skill.cpp

+ 1 - 1
src/map/skill.cpp

@@ -18530,7 +18530,7 @@ int skill_castfix_sc(struct block_list *bl, double time, uint8 flag)
 		}
 	}
 
-	time = max(time, 0);
+	time = std::max(time, 0.0);
 	//ShowInfo("Castime castfix_sc = %f\n",time);
 
 	return (int)time;