stop gcc warning (#1193)

This commit is contained in:
Dennis Brakhane
2025-08-01 07:16:38 +02:00
committed by GitHub
parent e750a0ceca
commit ab4dd63ceb
+2 -1
View File
@@ -227,7 +227,8 @@ namespace wi::ecs
entities.resize(prev_count + count);
for (size_t i = 0; i < count; ++i)
{
Entity entity;
// assign value to make GCC happy
Entity entity = INVALID_ENTITY;
SerializeEntity(archive, entity, seri);
entities[prev_count + i] = entity;
lookup[entity] = prev_count + i;