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!
This commit is contained in:
Aleos 2022-07-28 12:56:04 -04:00 committed by GitHub
parent 84d295e784
commit 97b5f3b4ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;