From 02860f193a11dd1e8ccbd517ebab3da866e82125 Mon Sep 17 00:00:00 2001 From: A-lex-Ra Date: Wed, 14 Feb 2024 10:40:02 +0600 Subject: [PATCH] included where needed --- src/frontend/gui/panels.cpp | 1 + src/items/Inventories.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/frontend/gui/panels.cpp b/src/frontend/gui/panels.cpp index 2a65903b..e86c6e28 100644 --- a/src/frontend/gui/panels.cpp +++ b/src/frontend/gui/panels.cpp @@ -1,6 +1,7 @@ #include "panels.h" #include +#include #include "../../window/Window.h" #include "../../assets/Assets.h" diff --git a/src/items/Inventories.cpp b/src/items/Inventories.cpp index 0b1ac2dc..787f31e6 100644 --- a/src/items/Inventories.cpp +++ b/src/items/Inventories.cpp @@ -1,4 +1,7 @@ #include "Inventories.h" + +#include + #include "../world/Level.h" #include "../world/World.h" @@ -18,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(1L, std::abs(random.rand64())); + id = -std::max(1LL, std::abs(random.rand64())); } while (map.find(id) != map.end()); auto inv = std::make_shared(id, size);