Skip to content
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

loaded a nun or ammo_data() is nullptr #71781

Closed
IdleSol opened this issue Feb 16, 2024 · 3 comments
Closed

loaded a nun or ammo_data() is nullptr #71781

IdleSol opened this issue Feb 16, 2024 · 3 comments
Labels
(S2 - Confirmed) Bug that's been confirmed to exist

Comments

@IdleSol
Copy link
Contributor

IdleSol commented Feb 16, 2024

Describe the bug

DEBUG : loaded a nun or ammo_data() is nullptr

FUNCTION : void item::gun_info(const item*, std::vector&, const iteminfo_query*, int, bool) const
FILE : src/item.cpp
LINE : 3131
VERSION : 93c658a

This error occurs when the upper receiver is removed from the weapon.

Attach save file

N/A

Steps to reproduce

  1. Default world and character
  2. Spawn "m4 carbine+1"
  3. Detach gunmods

Expected behavior

N/A

Screenshots

No response

Versions and configuration

  • OS: Windows
    • OS Version: 10.0.18362 (21H1)
  • Game Version: 93c658a [64-bit]
  • Graphics Version: Tiles
  • Game Language: English [en]
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Portal Storms Ignore NPCs [personal_portal_storms],
    Slowdown Fungal Growth [no_fungal_growth]
    ]

Additional context

No response

@ANickelN
Copy link
Contributor

/confirmed
Removing the upper receiver from a firearm can occur when you choose to "Unload everything" in a tile with the gun mods option enabled.

@github-actions github-actions bot added (S2 - Confirmed) Bug that's been confirmed to exist and removed (S1 - Need confirmation) Report waiting on confirmation of reproducibility labels Feb 16, 2024
@IdleSol
Copy link
Contributor Author

IdleSol commented Feb 22, 2024

If we focus on the m4 carbine. This error occurs for the first time in the game version: 2023-12-27-2158

If we focus on the ar-15 rifle: 2023-12-11-1357

Most likely the problem is PR #69725

@GuardianDll I apologize if I disturbed you inappropriately.

@GuardianDll
Copy link
Member

More like my PR was made based on a new feature (#69828), that have had this bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(S2 - Confirmed) Bug that's been confirmed to exist
Projects
None yet
Development

No branches or pull requests

3 participants