diff --git a/src/map/instance.cpp b/src/map/instance.cpp index 816ff78bdd..ad9b74e2db 100644 --- a/src/map/instance.cpp +++ b/src/map/instance.cpp @@ -724,8 +724,8 @@ void instance_generate_mapname(int map_id, int instance_id, char outname[MAP_NAM static const int prefix_length = 4; // Full map name length - prefix length - seperator character - zero termination static const int suffix_length = MAP_NAME_LENGTH - prefix_length - 1 - 1; - static const int prefix_limit = pow(10, prefix_length); - static const int suffix_limit = pow(10, suffix_length); + static const int prefix_limit = static_cast(pow(10, prefix_length)); + static const int suffix_limit = static_cast(pow(10, suffix_length)); safesnprintf(outname, MAP_NAME_LENGTH, "%0*u#%0*u", prefix_length, map_id % prefix_limit, suffix_length, instance_id % suffix_limit); }