This commit is contained in:
aozhiwei 2019-09-11 16:34:39 +08:00
parent 20f9c172f9
commit 6d64b8ba0a

View File

@ -2093,7 +2093,7 @@ void Human::ClearFrameData()
for (auto& itr : del_objects) { for (auto& itr : del_objects) {
Entity* entity = room->GetEntityByUniId(itr); Entity* entity = room->GetEntityByUniId(itr);
if (entity) { if (entity) {
part_objects.erase(entity); RemovePartObjects(entity);
} }
} }
del_objects.clear(); del_objects.clear();
@ -2102,7 +2102,7 @@ void Human::ClearFrameData()
for (auto& itr : out_objects) { for (auto& itr : out_objects) {
Entity* entity = room->GetEntityByUniId(itr); Entity* entity = room->GetEntityByUniId(itr);
if (entity) { if (entity) {
part_objects.erase(entity); RemovePartObjects(entity);
} }
} }
out_objects.clear(); out_objects.clear();