mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 06:42:12 +00:00
- don't let "give weapons" hand out abstract weapons.
This commit is contained in:
parent
43a419b318
commit
05260d8e8a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue