mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-24 04:11:24 +00:00
- Do not error out if some states are missing in an abstract weapon class
This commit is contained in:
parent
d6775e9322
commit
a1f566f7b8
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ void FinalizeClass(PClass *ccls, FStateDefinitions &statedef)
|
|||
def->flags |= MF_SPECIAL;
|
||||
}
|
||||
|
||||
if (cls->IsDescendantOf(NAME_Weapon))
|
||||
if (cls->IsDescendantOf(NAME_Weapon) && !cls->bAbstract)
|
||||
{
|
||||
FState *ready = def->FindState(NAME_Ready);
|
||||
FState *select = def->FindState(NAME_Select);
|
||||
|
|
Loading…
Reference in a new issue