From 39b79f534793e558458f3923fb4fb641546919f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 12 Sep 2015 08:40:40 +0200 Subject: [PATCH] don't load the AI routines in the map editor --- OpenRA.Mods.Common/AI/HackyAI.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/AI/HackyAI.cs b/OpenRA.Mods.Common/AI/HackyAI.cs index cd6185b01c..a3c9e7148a 100644 --- a/OpenRA.Mods.Common/AI/HackyAI.cs +++ b/OpenRA.Mods.Common/AI/HackyAI.cs @@ -222,6 +222,9 @@ namespace OpenRA.Mods.Common.AI Info = info; World = init.World; + if (World.Type == WorldType.Editor) + return; + domainIndex = World.WorldActor.Trait(); resLayer = World.WorldActor.Trait(); territory = World.WorldActor.TraitOrDefault();