layers: Adding attachment checks to make sure they aren't out of range.
1 file changed