forked from rosebudai/OpenRCT2-Web
Use TryGetEntity for iterators as it handles null entities explicitly
This commit is contained in:
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user