Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tpastor committed Sep 23, 2013
1 parent 6301f20 commit 55cd72a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Artemis_XNA_INDEPENDENT/EntityWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,12 @@ public IComponentPool<ComponentPoolable> GetPool(Type type)
/// <param name="assembliesToScan">The assemblies to scan for data attributes.</param>
public void InitializeAll(params Assembly[] assembliesToScan)
{
bool processAttributes = assembliesToScan != null && assembliesToScan.Length > 0;
this.SystemManager.InitializeAll(processAttributes, assembliesToScan);
if(!this.isInitialized)
{
bool processAttributes = assembliesToScan != null && assembliesToScan.Length > 0;
this.SystemManager.InitializeAll(processAttributes, assembliesToScan);
this.isInitialized = true;
}
}

/// <summary>Initialize the EntityWorld.
Expand Down

0 comments on commit 55cd72a

Please sign in to comment.