Corrected an uninitialized variable when adding an item

- The .favorite field of newly added inventory items wasn't correctly
  initialized to zero, potentially causing data loss (fixes
  bugreport:7854, thanks to Vincent, GrumpyPanda).

Signed-off-by: Haru <haru@dotalux.com>