Fixes #110 NetHack dumped core while qsort was executing for sortloot. Fix a logic error introduced by adding filtering capability to sortloot() which could result in a sparsely populated array instead of having the number of elements be less than the list size. I don't know why this didn't show up sooner.
5.4 KiB
5.4 KiB