|
@@ -42,7 +42,7 @@ public class L2MonsterInstance extends L2Attackable
|
|
|
protected boolean _enableMinions = true;
|
|
|
|
|
|
private L2MonsterInstance _master = null;
|
|
|
- private MinionList _minionList = null;
|
|
|
+ private volatile MinionList _minionList = null;
|
|
|
|
|
|
protected ScheduledFuture<?> _maintenanceTask = null;
|
|
|
|
|
@@ -228,9 +228,14 @@ public class L2MonsterInstance extends L2Attackable
|
|
|
{
|
|
|
if (_minionList == null)
|
|
|
{
|
|
|
- _minionList = new MinionList(this);
|
|
|
+ synchronized (this)
|
|
|
+ {
|
|
|
+ if (_minionList == null)
|
|
|
+ {
|
|
|
+ _minionList = new MinionList(this);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
return _minionList;
|
|
|
}
|
|
|
|