diff options
Diffstat (limited to 'src/UI/SlotArea.cpp')
-rw-r--r-- | src/UI/SlotArea.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp index bf328154d..edd2a4835 100644 --- a/src/UI/SlotArea.cpp +++ b/src/UI/SlotArea.cpp @@ -2742,18 +2742,15 @@ void cSlotAreaTemporary::TossItems(cPlayer & a_Player, int a_Begin, int a_End) return; } - cItems Drops; for (int i = a_Begin; i < a_End; i++) { cItem & Item = itr->second[static_cast<size_t>(i)]; if (!Item.IsEmpty()) { - Drops.push_back(Item); + a_Player.TossPickup(Item); + Item.Empty(); } - Item.Empty(); } // for i - itr->second[] - - a_Player.TossItems(Drops); } |