Apply review suggestions

This commit is contained in:
Matt 2021-01-05 01:18:25 +02:00
parent c442ef6207
commit b1561001b7
No known key found for this signature in database
GPG Key ID: 6D4C24A61C93E208
1 changed files with 3 additions and 3 deletions

View File

@ -939,7 +939,7 @@ void EntityTweener::PopulateEntities(EntityListId id)
for (auto ent : EntityList(id)) for (auto ent : EntityList(id))
{ {
_ents.push_back(&(*ent)); _ents.push_back(&(*ent));
_prePos.push_back({ ent->x, ent->y, ent->z }); _prePos.emplace_back(ent->x, ent->y, ent->z);
} }
} }
@ -959,11 +959,11 @@ void EntityTweener::PostTick()
if (!IsValidEntity(ent)) if (!IsValidEntity(ent))
{ {
// Sprite was removed, add a dummy position to keep the index aligned. // Sprite was removed, add a dummy position to keep the index aligned.
_postPos.push_back({}); _postPos.emplace_back(0, 0, 0);
} }
else else
{ {
_postPos.push_back({ ent->x, ent->y, ent->z }); _postPos.emplace_back(ent->x, ent->y, ent->z);
} }
} }
} }