mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 05:21:16 +00:00
Fixed CreateCopy being broken on HexenArmor
This commit is contained in:
parent
220200d836
commit
04cdbd1898
1 changed files with 5 additions and 4 deletions
|
@ -468,11 +468,12 @@ class HexenArmor : Armor
|
|||
|
||||
override Inventory CreateCopy (Actor other)
|
||||
{
|
||||
// Like BasicArmor, HexenArmor is used in the inventory but not the map.
|
||||
// health is the slot this armor occupies.
|
||||
// Unlike BasicArmor, Hexen's armor pieces directly inherit from this class.
|
||||
// Health is the slot this armor occupies.
|
||||
// Amount is the quantity to give (0 = normal max).
|
||||
let copy = HexenArmor(Spawn(GetHexenArmorClass()));
|
||||
copy.AddArmorToSlot (health, Amount);
|
||||
let copy = HexenArmor(Spawn(GetClass()));
|
||||
copy.Health = Health;
|
||||
copy.Amount = Amount;
|
||||
GoAwayAndDie ();
|
||||
return copy;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue