summaryrefslogtreecommitdiff
path: root/sim/src/BaseBattle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sim/src/BaseBattle.cpp')
-rw-r--r--sim/src/BaseBattle.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/src/BaseBattle.cpp b/sim/src/BaseBattle.cpp
index 6182fec..fa91134 100644
--- a/sim/src/BaseBattle.cpp
+++ b/sim/src/BaseBattle.cpp
@@ -16,6 +16,7 @@
#include <kurator/universe/UniqueIdentifier.h>
#include "Builder.h"
+#include "RandomSpawner.h"
namespace kurator
@@ -25,9 +26,9 @@ namespace sim
BaseBattle::BaseBattle(const campaign::Scenario& scenario) :
- _registry {},
- spawner {scenario.last_team(), scenario.radius, 0.1}
+ _registry {}
{
+ RandomSpawner spawner {scenario.last_team(), scenario.radius, 0.1};
Builder build {_registry, spawner};
for (const auto& ship : scenario.ships) {
const auto entity = build(ship.loadout.type, ship.team);