This commit is contained in:
aozhiwei 2021-09-17 04:00:51 +00:00
parent f5d9dbfe46
commit 62e659e4b2

View File

@ -2330,11 +2330,11 @@ void Human::OnDisable()
void Human::GetViewObjects(std::set<Entity*>& view_objects) void Human::GetViewObjects(std::set<Entity*>& view_objects)
{ {
TraverseAllLayerHumanList TraverseCreatures
( (
[&view_objects] (Human* hum, bool& stop) [&view_objects] (Creature* c, bool& stop)
{ {
view_objects.insert(hum); view_objects.insert(c);
}); });
TraverseAllLayerEntityList TraverseAllLayerEntityList
( (