Fix issue #1275 - wielded index greater than inv size.