Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarPlayer.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-09 11:09:04 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-09 11:09:04 +1100
commit165bcbefee1c6c0f73553190ecffadcfdf40f16d (patch)
tree85b7cfb6ea89c04c80cc2d199a47e0be9a528670 /source/game/StarPlayer.cpp
parent52a6f200ed1613ea888db9885f1a27c1c975a7d2 (diff)
minor code polish
Diffstat (limited to 'source/game/StarPlayer.cpp')
-rw-r--r--source/game/StarPlayer.cpp5
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));
}
}