This is definitely wrong - sd->equip_index can be - 1 and we can't use unsigned for it...
Merge pull request #30 from Baalberith6/master

We can't use unsigned int for equip index since we put -1 in sd->equip_index[i] as sign of an empty place.