mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
parent
2086a66340
commit
2e1545ffc4
1 changed files with 1 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ CUnit::~CUnit()
|
|||
CUnit* CUnit::Create(const CStrW& actorName, uint32_t seed, const std::set<CStr>& selections, CObjectManager& objectManager)
|
||||
{
|
||||
auto [success, actor] = objectManager.FindActorDef(actorName);
|
||||
ENSURE(success);
|
||||
|
||||
CUnit* unit = new CUnit(objectManager, actor, seed);
|
||||
unit->SetActorSelections(selections); // Calls ReloadObject().
|
||||
|
|
|
|||
Loading…
Reference in a new issue