-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zombies cant get clothes #53785
Comments
The Lines 2527 to 2539 in f8734ab
are expected to return a nullptr if the corpse can't be created but make_mon_corpse() calls get_map().add_item_or_charges() which returns a reference to the null item, not nullptr , when the item can't be added to the chosen position.
This null item is still a valid item and the I think this is a good first issue if anyone wants to fix it before I get to it. An easy repro is to find/spawn a crater map special (the bugged ones that have ledges that lead to filled terrain) and spawning a zombie on top. The zombie will fall, die inside the wall and try to spawn a corpse. The wall will prevent placement of the corpse in that or any tiles around, causing the bug. |
Fixes an issue when a corpse can't be created, which should return a nullptr, not a null item. fixes CleverRaven#53785, fixes CleverRaven#54603
Describe the bug
when I move somewhere, I always get similar errors that are in the log
Steps to reproduce
Expected behavior
I expect poor zombies to get their clothes
Screenshots
Versions and configuration
win 10
34f079e
russian
mods: [ "dda", "blazeindustries", "aftershock", "crt_expansion", "no_hope", "StatsThroughSkills", "speedydex", "stats_through_kills", "stamina_regen_buff", "crazy_cataclysm", "Graphical_Overmap", "WHALEYHAIR1"
debug.log
FrostPunk.zip
]
Additional context
No response
The text was updated successfully, but these errors were encountered: