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

summaryrefslogtreecommitdiff
path: root/source/game/StarPlayer.cpp
diff options
context:
space:
mode:
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));
}
}