Fixed compile bug with inventory. Not sure if there are others.