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++ ) for ( int i=0; i<AllActorClasses.Size(); i++ )
{ {
let type = (Class<UTArmor>)(AllActorClasses[i]); let type = (Class<UTArmor>)(AllActorClasses[i]);
if ( !type ) continue; if ( !type || (type == 'UTArmor') || (type == 'UnrealArmor') ) continue;
let def = GetDefaultByType(type);
if ( !def.Icon.isValid() ) continue;
if ( GetReplacement(type) == type ) if ( GetReplacement(type) == type )
{ {
let item = Inventory(Spawn(type)); let item = Inventory(Spawn(type));