more sortloot revamp fallout
commit1cad2bd7836af5189c24c019202528c82d713701
authorPatR <rankin@nethack.org>
Wed, 20 Apr 2016 00:01:01 +0000 (19 17:01 -0700)
committerPatR <rankin@nethack.org>
Wed, 20 Apr 2016 00:01:01 +0000 (19 17:01 -0700)
tree21ef44f50a91af28e5ee259e9f4e6ef3060119fb
parenta0a44089577038570917a243c49cc6ae86952531
more sortloot revamp fallout

getobj() was caching 'invent' in 'firstobj', dating from the days
of the !GOLDOBJ configuration, and sortloot() could change the value
of invent, making firstobj end up pointing somewhere into the midst
of the inventory list.  So collecting letters of applicable items
could miss things (typically right after restoring a saved game).
Repeating the command would operate on already sorted invent, making
firstobj remain valid and things mysteriously reappear after having
been missed before.

Just get rid of 'firstobj' since it's no longer useful.
src/invent.c