Removed more literal references to AInventory.

This commit is contained in:
Christoph Oelckers 2018-12-04 17:00:48 +01:00
commit cd563cc4db
29 changed files with 80 additions and 93 deletions

View file

@ -351,7 +351,7 @@ void FWeaponSlots::AddExtraWeapons()
{
continue;
}
auto weapdef = ((AInventory*)GetDefaultByType(cls));
auto weapdef = GetDefaultByType(cls);
// Let the weapon decide for itself if it wants to get added to a slot.
IFVIRTUALPTRNAME(weapdef, NAME_Weapon, CheckAddToSlots)