[ent] Fix ぬるぽ when player->character is NULL
[ent] Fix some inventory management bugs