logic: commandline indexing and configuration

This commit is contained in:
Andreas Stallinger
2017-08-09 12:33:43 +02:00
parent 2399e733b4
commit 802153883e
53 changed files with 1384 additions and 298 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ private:
template <typename ComponentType>
ComponentType* Token::getComponent() const
{
for (std::shared_ptr<TokenComponent> component: m_components)
for (const std::shared_ptr<TokenComponent>& component: m_components)
{
TokenComponent* componentPtr = component.get();
if (typeid(ComponentType) == typeid(*componentPtr))