[9511] Hotfix for low chance crash at not accessable gameobject cast.

This commit is contained in:
VladimirMangos 2010-03-04 08:52:59 +03:00
parent 7fb5d850bf
commit bee93cb17c
2 changed files with 2 additions and 2 deletions

View file

@ -664,7 +664,7 @@ namespace MaNGOS
: i_data(&data), i_spell(spell), i_push_type(type), i_radius(radius), i_TargetType(TargetType)
{
i_originalCaster = spell.GetCastingObject();
i_playerControled = i_originalCaster->IsControlledByPlayer();
i_playerControled = i_originalCaster ? i_originalCaster->IsControlledByPlayer() : false;
}
template<class T> inline void Visit(GridRefManager<T> &m)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9510"
#define REVISION_NR "9511"
#endif // __REVISION_NR_H__