Jump to content

[crash] ForcedDespawn();


Guest DJNefast

Recommended Posts

Hi

i've a question about crash on ForcedDespawn();

I've got a lot of crash when a boss die with justdied or use reset() function.

It's the same crash. The function forcedDespawn(); crash.

In fact my code war normally secure.

if(tomb)
   if(tomb->isAlive())
       tomb->ForcedDespawn();

it's an example with Keleseth but i've the same crash with auriaya's add (only white tiger no black tiger)

Any idea ?

Link to comment
Share on other sites

The crash log is simple.

my mob Reset()

then call the CleanAdds() function (which see the boss's adds)

in this function :

if(add)

add->ForcedDespawn();

then

ForcedDespawn() => crash

or setDeathState(JUST_DIED) => crash.

this crash doesn't appear on all creatures... strange...

Link to comment
Share on other sites

you probably done mistake like many other people. If you stored pointers and you fail to control what is happening with them during script execution use GUIDs instead and create pointer each time when it is needed. Pobably you summoned adds using SummonCreature() than stored pointers to them and finaly tried to access unit that has been already killed and despawned.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use