Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

allow GiveItem() to transfer equipped items by default

renal.dlg in BG2 needs this, for example.
  • Loading branch information...
commit 27dfdcf4737363bcadc64d3954a6cc9b0db62836 1 parent 661eeaf
@fizzet fizzet authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 gemrb/core/Inventory.cpp
4 gemrb/core/Inventory.cpp
@@ -577,11 +577,11 @@ CREItem *Inventory::RemoveItem(unsigned int slot, unsigned int count)
//flags set disable item transfer
-//except for undroppable and equipped, which are opposite (and shouldn't be set)
+//except for undroppable which is opposite (and shouldn't be set)
int Inventory::RemoveItem(const char *resref, unsigned int flags, CREItem **res_item, int count)
size_t slot = Slots.size();
- unsigned int mask = (flags^(IE_INV_ITEM_UNDROPPABLE|IE_INV_ITEM_EQUIPPED));
+ unsigned int mask = (flags^IE_INV_ITEM_UNDROPPABLE);
if (core->HasFeature(GF_NO_DROP_CAN_MOVE) ) {

0 comments on commit 27dfdcf

Please sign in to comment.
Something went wrong with that request. Please try again.