don't load the AI routines in the map editor

This commit is contained in:
Matthias Mailänder
2015-09-12 08:40:40 +02:00
parent 4108b6da46
commit 39b79f5347

View File

@@ -222,6 +222,9 @@ namespace OpenRA.Mods.Common.AI
Info = info;
World = init.World;
if (World.Type == WorldType.Editor)
return;
domainIndex = World.WorldActor.Trait<DomainIndex>();
resLayer = World.WorldActor.Trait<ResourceLayer>();
territory = World.WorldActor.TraitOrDefault<ResourceClaimLayer>();