[Tempfixed] Crash On Player Death (NPCBots)

Issue #15 resolved
Nobody created an issue

Made a separate issue: Sorry about the confusion.

.../Entities/Object\Object.h:775

in WorldObject::GetMap ASSERTION FAILED:

m_currMap

[0x322975]

[0x1c8e09]

[0x25aee0]

[0x1f84b8]

[0x1fb60f]

[0x1f03c1]

ACE_Task_Base::svc_run()+0x2e [0x0]

ACE_Thread_Adapter::invoke_i()+0x88 [0x0]

ACE_Thread_Adapter::invoke()+0x83 [0x0]

endthreadex()+0x3a [0x0]

endthreadex()+0xe4 [0x0]

BaseThreadInitThunk()+0x12 [0x0]

RtlInitializeExceptionChain()+0x63 [0x0]

RtlInitializeExceptionChain()+0x36 [0x0]

Referance:

https://github.com/TrinityCore/TrinityCore/issues/3953

Referance

void ObjectAccessor::RemoveCorpse(Corpse* corpse)
{
    ASSERT(corpse && corpse->GetType() != CORPSE_BONES);

    //TODO: more works need to be done for corpse and other world object
    if (Map* map = corpse->FindMap())
    {
        corpse->DestroyForNearbyPlayers();
        if (corpse->IsInGrid())
            map->RemoveFromMap(corpse, false);
        else
        {
            corpse->RemoveFromWorld();
            corpse->ResetMap();
        }
    }
    else

        corpse->RemoveFromWorld();

Comments (3)

  1. Nobody reporter

    I did test without Warlock Bot in party, and server doesn't crash.

    Only seems to happen with Warlock Bot in party.

  2. Log in to comment