Oh thanks
I have this is secree_manager.cpp
struct FDestroyPrivateMapEntity
{
void operator() (LPENTITY ent)
{
if (ent->IsType(ENTITY_CHARACTER))
{
LPCHARACTER ch = (LPCHARACTER) ent;
sys_log(0, "PRIVAE_MAP: removing character %s", ch->GetName());
if (ch->GetDesc())
DESC_MANAGER::instance().DestroyDesc(ch->GetDesc());
else
M2_DESTROY_CHARACTER(ch);
}
else if (ent->IsType(ENTITY_ITEM))
{
LPITEM item = (LPITEM) ent;
sys_log(0, "PRIVATE_MAP: removing item %s", item->GetName());
M2_DESTROY_ITEM(item);
}
else
sys_err("PRIVAE_MAP: trying to remove unknown entity %d", ent->GetType());
}
};