Tried to fix an ArgumentOutOfRangeException in GetSpawnOccupants

as shown in #5588.
Yes, that's what I meant. I edited the condition because it had a mistake before (it was +1 instead of -1).