Do not abort if Korax target destroyed before attack begins

https://forum.zdoom.org/viewtopic.php?t=59551
This commit is contained in:
alexey.lysiuk 2018-02-22 16:52:45 +02:00
parent 9bf11155eb
commit 12eb760ff4

View file

@ -244,6 +244,11 @@ class Korax : Actor
void A_KoraxMissile()
{
if (!target)
{
return;
}
static const class<Actor> choices[] =
{
"WraithFX1", "Demon1FX1", "Demon2FX1", "FireDemonMissile", "CentaurFX", "SerpentFX"
@ -282,6 +287,11 @@ class Korax : Actor
void KoraxFire (Class<Actor> type, int arm)
{
if (!target)
{
return;
}
static const int extension[] =
{
KORAX_ARM_EXTENSION_SHORT,