- do not allow summon CCMD to spawn abstract classes

This commit is contained in:
Christoph Oelckers 2019-12-12 02:13:19 +01:00 committed by drfrag
parent e4c1b1413e
commit d56e519bc7

View file

@ -712,6 +712,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());