Skip to content

Commit

Permalink
Fix single module addition
Browse files Browse the repository at this point in the history
  • Loading branch information
Exouxas committed Oct 20, 2023
1 parent db52c09 commit 14f2eed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Core/Agents/Actor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ public void AddModule(Module module)
Modules.Add(module);
module.Body = this;
AreModulesValidated = false;
module.Initialize();

if (AreModulesValidated)
{
module.Initialize();
}
}

/// <summary>
Expand Down

0 comments on commit 14f2eed

Please sign in to comment.