mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 14:54:30 +01:00
Fix sorting and missed floor() usage
This commit is contained in:
committed by
Michał Janiszewski
parent
d4cfad8ab2
commit
f1ab13f56e
@@ -615,7 +615,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc)
|
||||
}
|
||||
|
||||
sint32 maxIndex = (sint32)spriteFileHeader.num_entries;
|
||||
sint32 numbers = (sint32)floor(std::log(maxIndex));
|
||||
sint32 numbers = (sint32)std::floor(std::log(maxIndex));
|
||||
size_t pathLen = strlen(outputPath);
|
||||
|
||||
if (pathLen >= (size_t)(MAX_PATH - numbers - 5)) {
|
||||
|
||||
Reference in New Issue
Block a user