mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- do not allow summon CCMD to spawn abstract classes
This commit is contained in:
parent
165d9951aa
commit
bf8305062a
1 changed files with 5 additions and 0 deletions
|
@ -707,6 +707,11 @@ static void SummonActor (int command, int command2, FCommandLine argv)
|
|||
Printf ("Unknown actor '%s'\n", argv[1]);
|
||||
return;
|
||||
}
|
||||
if (type->bAbstract)
|
||||
{
|
||||
Printf("Cannot instantiate abstract class %s\n", argv[1]);
|
||||
return;
|
||||
}
|
||||
Net_WriteByte (argv.argc() > 2 ? command2 : command);
|
||||
Net_WriteString (type->TypeName.GetChars());
|
||||
|
||||
|
|
Loading…
Reference in a new issue