mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9511] Hotfix for low chance crash at not accessable gameobject cast.
This commit is contained in:
parent
7fb5d850bf
commit
bee93cb17c
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9510"
|
||||
#define REVISION_NR "9511"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue