// Test that the target zone index is not greater than the last position in the list of indexes
// or less than the first position in the list of indexes.
if (targetZoneIndex > targetZoneIndexes.get(targetZoneIndexes.size() - 1) + 1
|| targetZoneIndex < targetZoneIndexes.get(0) - 1)
{
vex.addError("invalidZoneIndex",
"Destination zone index is outside of the acceptable bounds for the target zone index.");
throw vex;
}
}
//If the target zone number does not have any gadgets in it, then the index should always be 0.