diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-09 11:09:04 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-09 11:09:04 +1100 |
commit | 165bcbefee1c6c0f73553190ecffadcfdf40f16d (patch) | |
tree | 85b7cfb6ea89c04c80cc2d199a47e0be9a528670 /source/game/StarPlayer.cpp | |
parent | 52a6f200ed1613ea888db9885f1a27c1c975a7d2 (diff) |
minor code polish
Diffstat (limited to 'source/game/StarPlayer.cpp')
-rw-r--r-- | source/game/StarPlayer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/game/StarPlayer.cpp b/source/game/StarPlayer.cpp index 1ac1234..9790225 100644 --- a/source/game/StarPlayer.cpp +++ b/source/game/StarPlayer.cpp @@ -330,8 +330,9 @@ void Player::init(World* world, EntityId entityId, EntityMode mode) { p.second->addCallbacks("celestial", LuaBindings::makeCelestialCallbacks(m_client)); p.second->init(world); } - for (auto& p : m_inventory->clearOverflow()) { - world->addEntity(ItemDrop::createRandomizedDrop(p,m_movementController->position(),true)); + + for (auto& p : m_inventory->pullOverflow()) { + world->addEntity(ItemDrop::createRandomizedDrop(p, m_movementController->position(), true)); } } |