Clear lists only when not empty.

This commit is contained in:
MobiusDevelopment 2019-06-09 02:21:09 +00:00
parent 439da1c31d
commit 6514604c4a
13 changed files with 26 additions and 26 deletions

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.

View File

@ -119,8 +119,8 @@ public class MinionList
minion.deleteMe();
}
}
}
_spawnedMinions.clear();
}
if (!_respawnTasks.isEmpty())
{
@ -131,10 +131,10 @@ public class MinionList
task.cancel(true);
}
}
}
_respawnTasks.clear();
}
}
}
/**
* Called on the minion death/delete. Removed minion from the list of the spawned minions and reuse if possible.