MantisBT - Zandronum
View Issue Details
0004557Zandronum[All Projects] Bugpublic2025-06-30 03:272025-07-15 16:14
Mr. Satan 
 
normalcrashalways
newopen 
MicrosoftWindows11
3.2 
 
0004557: Zandro crashes when you try to give an actor that doesn't inherit from the Inventory class in DECORATE
Zandro crashes when you try to give an actor to a player that doesn't inherit from the Inventory class using A_GiveInventory. Have not tested it with any of the other DECORATE functions that give inventory. This has already been fixed in GZDoom.
Summon ActorTest and pick it up.
//Bad Zandro fix this
Actor ActorTest : CustomInventory
{
  +INVENTORY.ALWAYSPICKUP
  Inventory.MaxAmount 0
  States
  {
  Spawn:
    TNT1 A 10
    Loop
  Pickup:
    TNT1 A 0 A_GiveInventory("BadItem",1)
    TNT1 A 0 A_PrintBold("Item acquired")
    Stop
  }
}

Actor BadItem {}
No tags attached.
Issue History
2025-06-30 03:27Mr. SatanNew Issue
2025-06-30 14:08Mr. SatanNote Added: 0024552
2025-07-15 16:14Mr. SatanNote Edited: 0024552bug_revision_view_page.php?bugnote_id=24552#r14585

Notes
(0024552)
Mr. Satan   
2025-06-30 14:08   
(edited on: 2025-07-15 16:14)
A_GiveToTarget, A_GiveToChildren, A_GiveToSiblings, A_RadiusGive also crash Zandro. When this is fixed, an error msg should be outputted to the console window with the actor name that was given when this happens to make it easier for modders to fix.