Small change

This commit is contained in:
Lynix 2017-10-11 00:33:41 +02:00
parent 7fb1bd387d
commit b14a9f219a
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ bool SpacebattleExample::Update(Ndk::StateMachine& fsm, float elapsedTime)
auto& spacestationNode = m_spacestationEntity->GetComponent<Ndk::NodeComponent>();
Ndk::EntityHandle spaceship = m_spaceshipTemplate->Clone();
const Ndk::EntityHandle& spaceship = m_spaceshipTemplate->Clone();
RegisterEntity(spaceship);
auto& nodeComponent = spaceship->GetComponent<Ndk::NodeComponent>();
auto& spaceshipComponent = spaceship->GetComponent<SpaceshipComponent>();