This should address the issue that the problem patch to display_pickinv() was trying to deal with: releasing the inventory window before exiting the program so Pasi's memory checker doesn't think it's a memory leak. Not related, but in the same file: The older qsort comparison routines are tagged with CFDECLSPEC to deal with some C vs C++ interaction issue. I added that to the relatively recently added 'sortloot' qsort compare callback. I also changed worn_wield_only(), although it isn't actually called. (display_minventory() has provisions to call it, but both of the latter's callers pass in MINV_ALL so allow_all() gets used instead.)
97 KiB
97 KiB