diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 8f8512a..4ede2ad 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -2093,6 +2093,7 @@ void Human::ClearFrameData() if (!a8::HasBitFlag(status, HS_Disable)) { for (auto& itr : out_objects) { Entity* entity = room->GetEntityByUniId(itr); + Human* hum = (Human*)entity; if (entity) { RemovePartObjects(entity); if (entity->entity_type == ET_Player) { @@ -3369,6 +3370,9 @@ void Human::OnEnable() void Human::OnDisable() { + grid_id = 0; + grid_list.clear(); + last_collision_door = nullptr; ClearFrameData(); ClearPartObjects(); }