Prevent getAI NPE.
Contributed by Sahar.
This commit is contained in:
@ -1749,7 +1749,8 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
{
|
||||
synchronized (this)
|
||||
{
|
||||
if (_ai == null)
|
||||
ai = _ai;
|
||||
if (ai == null)
|
||||
{
|
||||
_ai = ai = initAI();
|
||||
}
|
||||
|
Reference in New Issue
Block a user