From c33ec3209f3a575c12e12267e013039a1790898b Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Mon, 12 Sep 2022 20:35:34 +0300 Subject: [PATCH] prevent using with versus survival --- YAS/Classes/YAS.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YAS/Classes/YAS.uc b/YAS/Classes/YAS.uc index 7b4f2c4..3d496e2 100644 --- a/YAS/Classes/YAS.uc +++ b/YAS/Classes/YAS.uc @@ -214,7 +214,7 @@ private function PostInit() } KFGI = KFGameInfo(WorldInfo.Game); - if (KFGI == None) + if (KFGI == None || KFGameInfo_VersusSurvival(KFGI) != None) // VersusSurvival is not supported (yet) { `Log_Fatal("Incompatible gamemode:" @ WorldInfo.Game); SafeDestroy();