Small change
This commit is contained in:
parent
7fb1bd387d
commit
b14a9f219a
|
|
@ -727,7 +727,7 @@ bool SpacebattleExample::Update(Ndk::StateMachine& fsm, float elapsedTime)
|
||||||
|
|
||||||
auto& spacestationNode = m_spacestationEntity->GetComponent<Ndk::NodeComponent>();
|
auto& spacestationNode = m_spacestationEntity->GetComponent<Ndk::NodeComponent>();
|
||||||
|
|
||||||
Ndk::EntityHandle spaceship = m_spaceshipTemplate->Clone();
|
const Ndk::EntityHandle& spaceship = m_spaceshipTemplate->Clone();
|
||||||
RegisterEntity(spaceship);
|
RegisterEntity(spaceship);
|
||||||
auto& nodeComponent = spaceship->GetComponent<Ndk::NodeComponent>();
|
auto& nodeComponent = spaceship->GetComponent<Ndk::NodeComponent>();
|
||||||
auto& spaceshipComponent = spaceship->GetComponent<SpaceshipComponent>();
|
auto& spaceshipComponent = spaceship->GetComponent<SpaceshipComponent>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue