Minor adjustment to how the give armor cheat works.

This commit is contained in:
Marisa the Magician 2019-11-29 00:07:34 +01:00
commit 04b9dfbb17

View file

@ -141,9 +141,7 @@ Class UPlayer : UTPlayer
for ( int i=0; i<AllActorClasses.Size(); i++ )
{
let type = (Class<UTArmor>)(AllActorClasses[i]);
if ( !type ) continue;
let def = GetDefaultByType(type);
if ( !def.Icon.isValid() ) continue;
if ( !type || (type == 'UTArmor') || (type == 'UnrealArmor') ) continue;
if ( GetReplacement(type) == type )
{
let item = Inventory(Spawn(type));