clintbellanger/flare-engine — pull request #1167 by dorkster (2014-08-25 20:57:23+00:00)
Title: Do proper leftover calculations when adding equipment to slots

ItemStorage's add() function will try to fill up all slots in the
storage area. This isn't what we want for equipment. Instead, any
overflow should be added to the player's regular inventory.

In MenuInventory:activate(), I simplified searching for valid slots.
It's now a single loop instead of two separate loops.