- Joined
- Aug 3, 2008
- Messages
- 2,345
I'm making an item stacking system using hash tables, and I've got everything working except for the hash table collision detection. My formula is ITEM_ID%(modulus)8192. Can anyone tell me how I make it so, if I have one item which has an idea of, say, 300, how I can make it not overwrite an item in my hash table with an id of, say 8492? How do I go about this? I really have no idea...