mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +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)
|
override Inventory CreateCopy (Actor other)
|
||||||
{
|
{
|
||||||
// Like BasicArmor, HexenArmor is used in the inventory but not the map.
|
// Unlike BasicArmor, Hexen's armor pieces directly inherit from this class.
|
||||||
// health is the slot this armor occupies.
|
// Health is the slot this armor occupies.
|
||||||
// Amount is the quantity to give (0 = normal max).
|
// Amount is the quantity to give (0 = normal max).
|
||||||
let copy = HexenArmor(Spawn(GetHexenArmorClass()));
|
let copy = HexenArmor(Spawn(GetClass()));
|
||||||
copy.AddArmorToSlot (health, Amount);
|
copy.Health = Health;
|
||||||
|
copy.Amount = Amount;
|
||||||
GoAwayAndDie ();
|
GoAwayAndDie ();
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue