remove GameObject from World


Since the last update that changed the GUID operation. I can no longer delete a gameobject the world with his guid.
Before this update I used this:

if (GameObjectData const* data = sObjectMgr->GetGOData(guidCoffres))
sObjectMgr->RemoveGameobjectFromGrid(guidCoffres, data);
if (GameObject* pGameobject = [COLOR=rgb(255,165,0)]ObjectAccessor::GetObjectInWorld(ObjectGuid(HIGHGUID_GAMEOBJECT, data->id, guidCoffres), (GameObject*)NULL))

GetObjectInWorld today no longer exists.

my version of core is : TrinityCore rev. 96185ea12da7+ 2015-10-04 21:03:08 +0200 (3.3.5 branch) (Win32, Debug)

someone can help me?

Thank you

you need to get the map and use

auto go = map->GetGameObject(guid);

— Canned message start —
This thread is not related to the official Trinity codebase and was moved to the Custom Code section.
Please read the stickies next time.
— Canned message end —