Fixed bug in @sqibonus when checking if player is wearing the SQI due to
using the index variable 'i' in the outer and inner loop causing unexpeced results.
In addition, the check uses inventory array rather than inventory_data