From 12eb760ff4905196a54d8b1196760f4e176be797 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 22 Feb 2018 16:52:45 +0200 Subject: [PATCH] Do not abort if Korax target destroyed before attack begins https://forum.zdoom.org/viewtopic.php?t=59551 --- wadsrc/static/zscript/hexen/korax.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wadsrc/static/zscript/hexen/korax.txt b/wadsrc/static/zscript/hexen/korax.txt index 8f313bc19e..b94664bea9 100644 --- a/wadsrc/static/zscript/hexen/korax.txt +++ b/wadsrc/static/zscript/hexen/korax.txt @@ -244,6 +244,11 @@ class Korax : Actor void A_KoraxMissile() { + if (!target) + { + return; + } + static const class choices[] = { "WraithFX1", "Demon1FX1", "Demon2FX1", "FireDemonMissile", "CentaurFX", "SerpentFX" @@ -282,6 +287,11 @@ class Korax : Actor void KoraxFire (Class type, int arm) { + if (!target) + { + return; + } + static const int extension[] = { KORAX_ARM_EXTENSION_SHORT,