Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
97b5f3b4ac
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;