*Cleanup in ObjectAccessor - this should fix some crashes

--HG--
branch : trunk
This commit is contained in:
QAston committed 2010-07-28 00:08:21 +02:00
1 parent 51400a4e15
commit e232c0e235
13 files changed
+123 -160

No files matched your search

-17
View File
@@ -1046,23 +1046,6 @@ void Spell::AddItemTarget(Item* pitem, uint32 effIndex)
void Spell::DoAllEffectOnTarget(TargetInfo *target)
{
// invalid pointer, log debug info to trac the reason
if (target && target < ((TargetInfo*)1024))
{
sLog.outString("Spell::DoAllEffectOnTarget CRASH! - debug info:");
sLog.outString("Caster:");
m_caster->OutDebugInfo();
if (m_targets.getUnitTarget())
{
sLog.outString("Unit target:");
m_targets.getUnitTarget()->OutDebugInfo();
}
sLog.outString("SpellId: %d", m_spellInfo->Id);
sLog.outString("SpellTargetMap:");
for (std::list<TargetInfo>::iterator ihit= m_UniqueTargetInfo.begin(); ihit != m_UniqueTargetInfo.end(); ++ihit)
sLog.outStringInLine("guid:%u, effmask:%u, ", ihit->targetGUID, ihit->effectMask);
ASSERT(false);
}
if (!target || target->processed)
return;