- don't let "give weapons" hand out abstract weapons.

This commit is contained in:
Christoph Oelckers 2022-04-16 22:19:07 +02:00
parent 43a419b318
commit 05260d8e8a

View file

@ -175,7 +175,7 @@ extend class PlayerPawn
for (i = 0; i < AllActorClasses.Size(); ++i)
{
let type = (class<Weapon>)(AllActorClasses[i]);
if (type != null && type != "Weapon")
if (type != null && type != "Weapon" && !type.isAbstract())
{
// Don't give replaced weapons unless the replacement was done by Dehacked.
let rep = GetReplacement(type);