From b14a9f219aeeecafbcfca477e2ce389e1051fe42 Mon Sep 17 00:00:00 2001 From: Lynix Date: Wed, 11 Oct 2017 00:33:41 +0200 Subject: [PATCH] Small change --- examples/Particles/SpacebattleDemo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Particles/SpacebattleDemo.cpp b/examples/Particles/SpacebattleDemo.cpp index b4f0eeadb..cfa0a5c71 100644 --- a/examples/Particles/SpacebattleDemo.cpp +++ b/examples/Particles/SpacebattleDemo.cpp @@ -727,7 +727,7 @@ bool SpacebattleExample::Update(Ndk::StateMachine& fsm, float elapsedTime) auto& spacestationNode = m_spacestationEntity->GetComponent(); - Ndk::EntityHandle spaceship = m_spaceshipTemplate->Clone(); + const Ndk::EntityHandle& spaceship = m_spaceshipTemplate->Clone(); RegisterEntity(spaceship); auto& nodeComponent = spaceship->GetComponent(); auto& spaceshipComponent = spaceship->GetComponent();