player inventory id fix

This commit is contained in:
MihailRis
2024-02-21 22:04:16 +03:00
parent 7ae5c4e3a1
commit 6c7497eee6
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ Level::Level(World* world, const Content* content, EngineSettings& settings)
{
objCounter = 0;
physics = new PhysicsSolver(glm::vec3(0, -22.6f, 0));
auto inv = std::make_shared<Inventory>(world->getNextInventoryId(), DEF_PLAYER_INVENTORY_SIZE);
auto inv = std::make_shared<Inventory>(0, DEF_PLAYER_INVENTORY_SIZE);
player = spawnObject<Player>(glm::vec3(0, DEF_PLAYER_Y, 0), DEF_PLAYER_SPEED, inv);
uint matrixSize = (settings.chunks.loadDistance+