*Fix a crash caused by 3881. Please do not use any revs between this and 3881.
--HG-- branch : trunk
This commit is contained in:
1 parent
337772c433
commit
a8e8bd1d28
2 files changed
+8
-7
No files matched your search
+3
-2
@@ -11682,7 +11682,8 @@ void Unit::AddToWorld()
|
||||
{
|
||||
WorldObject::AddToWorld();
|
||||
m_Notified = false;
|
||||
assert(m_NotifyListPos < 0);
|
||||
//assert(m_NotifyListPos < 0); instance : crash
|
||||
m_NotifyListPos = -1;
|
||||
SetToNotify();
|
||||
}
|
||||
}
|
||||
@@ -13233,7 +13234,7 @@ bool Unit::HandleAuraRaidProcFromCharge( AuraEffect* triggeredByAura )
|
||||
void Unit::SetToNotify()
|
||||
{
|
||||
// it is called somewhere when obj is not in world (crash when log in instance)
|
||||
if(m_NotifyListPos < 0 && IsInWorld())
|
||||
if(m_NotifyListPos < 0)
|
||||
GetMap()->AddUnitToNotify(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user