When all firearms in inventory are marked as favorite (or, in other words, when there is no un-favorited gun in the inventory), (a)pplying a bottom mount causes a segmentation fault.
Steps to reproduce
Spawn two guns with bottom mount slots and a bottom mount mod. No need to have the sufficient skills to mount the mod. (EDIT: on second thought, the guns do not necessarily need to have the mod slot, just be present in the inventory.)
(A)pply one of the bottom mounts. Notice behavior as usual. No need to actually attach the mod.
Mark one of the guns as a favorite. Once again, (a)pply one of the bottom mounts to one of the guns. Notice behavior as usual.
Mark both guns as favorites. Once again, (a)pply one of the bottom mounts to one of the guns. Notice a crash to desktop with a segmentation fault.
Expected behavior
Game not crashing.
Screenshots
No response
Versions and configuration
OS: Windows
OS Version: 10.0.19043.1645 (21H1)
Game Version: f37635a [64-bit]
Graphics Version: Tiles
Game Language: System language []
Mods loaded: [
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
No Fungal Growth [no_fungal_growth],
Bionic Professions [package_bionic_professions]
]
Additional context
The issue does not seem to be present with bow mods, so this is not something that affects all weapon mods - likely just the bottom mount, or other "mount" mods. Will test later if necessary.
Describe the bug
When all firearms in inventory are marked as favorite (or, in other words, when there is no un-favorited gun in the inventory), (a)pplying a bottom mount causes a segmentation fault.
Steps to reproduce
Expected behavior
Game not crashing.
Screenshots
No response
Versions and configuration
Additional context
The issue does not seem to be present with bow mods, so this is not something that affects all weapon mods - likely just the bottom mount, or other "mount" mods. Will test later if necessary.
Crash and debug logs added: config.zip