Fix typo in inventory.lua.

Seems I had typed `var` where I meant `tag`.