- started replacing direct references to class AInventory.

The easiest part was the type checks which could be changed to the name variant with a global search and replace.
This commit is contained in:
Christoph Oelckers 2018-12-02 21:35:04 +01:00
commit bfcd714186
14 changed files with 19 additions and 19 deletions

View file

@ -3054,7 +3054,7 @@ void FinishDehPatch ()
FStateDefinitions statedef;
statedef.MakeStateDefines(type);
if (!type->IsDescendantOf(RUNTIME_CLASS(AInventory)))
if (!type->IsDescendantOf(NAME_Inventory))
{
// If this is a hacked non-inventory item we must also copy AInventory's special states
statedef.AddStateDefines(RUNTIME_CLASS(AInventory)->GetStateLabels());