diff --git a/src/items/Inventories.cpp b/src/items/Inventories.cpp index 787f31e6..c072ff27 100644 --- a/src/items/Inventories.cpp +++ b/src/items/Inventories.cpp @@ -21,7 +21,7 @@ std::shared_ptr Inventories::create(size_t size) { std::shared_ptr Inventories::createVirtual(size_t size) { int64_t id; do { - id = -std::max(1LL, std::abs(random.rand64())); + id = -std::max(1LL, std::llabs(random.rand64())); } while (map.find(id) != map.end()); auto inv = std::make_shared(id, size);