Use TryGetEntity for iterators as it handles null entities explicitly

This commit is contained in:
ζeh Matt committed 2025-03-20 21:23:31 +02:00
1 parent e22c2eeb62
commit bd4db4a91b
1 file changed
+2 -2
+2 -2
View File
@@ -45,7 +45,7 @@ public:
while (iter != end && Entity == nullptr)
{
Entity = GetEntity<T>(*iter++);
Entity = TryGetEntity<T>(*iter++);
}
return *this;
}
@@ -119,7 +119,7 @@ public:
while (iter != end && Entity == nullptr)
{
Entity = GetEntity<T>(*iter++);
Entity = TryGetEntity<T>(*iter++);
}
return *this;
}