Jump to content

[10246] Crash


Recommended Posts

Posted

Rev: 10246

Core info: tryed in my custom core and with clean mangos source afterwards. It crahses in same places.

SpellAuras.cpp line 2624 -> if (target->GetTypeId() == TYPEID_UNIT)

I tryed adding a IsInWorld check and that moved the crash here.

CreatureAISelector.cpp line 37 -> if(CreatureAI* scriptedAI = Script->GetAI(creature))

Or may have been 2 diffrent crashes. I'm not very familiar with VC++ 08 debuging, but it seems more easyer then GDB. :)

It was working fine a few revisions ago. No SD2 was used in both tests.

I believe the problem is here http://github.com/mangos/mangos/commit/424989c5f2804b42830fe082455ae0be4d9372f4 in Creature.cpp, i don't think

CreatureInfo const *cinfo = GetCreatureInfo(); should have been removed.

Posted

CreatureAISelector.cpp line 37 -> if(CreatureAI* scriptedAI = Script->GetAI(creature))

happened to me If I had ScriptDev DLLs but forgot to recompile them (so they are not loaded)

Every time You compile core You must compile scripts too so they get linked (either it will crash at this point from creature that have AI assigned)

Posted

I used clean core WITHOUT SD2 and it did crashed.

After i added SD2 and recompiled both core and SD2 it started working allright again.

I don't understand what parts of SD2 remained after it was deleted the first time, I even deleted the release folder and used Clean Solution.

×
×
  • 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