mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
- Do not error out if some states are missing in an abstract weapon class
This commit is contained in:
parent
756caede51
commit
4aec72be5d
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,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