diff --git a/src/scene.cpp b/src/scene.cpp index 6490b95a..a44a2643 100644 --- a/src/scene.cpp +++ b/src/scene.cpp @@ -73,7 +73,7 @@ private: /* Primitives will be kept until: * - Updated by entity * - Scene is destroyed */ - map > m_primitives_; + map > m_primitives_; /* Old API */ float m_new_line_time; @@ -311,7 +311,8 @@ void Scene::AddPrimitive(Primitive* primitive) //----------------------------------------------------------------------------- void Scene::AddPrimitive(Entity* entity, Primitive* primitive) { - data->m_primitives_[(uint32_t)entity /* I don't like that */].push(primitive, nullptr); + /* FIXME: data->m_primitives_ is never emptied or even used. */ + data->m_primitives_[(uintptr_t)entity /* I don't like that */].push(primitive, nullptr); } //-----------------------------------------------------------------------------