Fixed off-by-one error
Fixed off-by-one error

This bug caused the handler of last alert action to be ignored.

Nykho/SDCAlertView,HuylensHu/SDCAlertView,sberrevoets/SDCAlertView,DeskConnect/SDCAlertView,DeskConnect/SDCAlertView,Wurrly/SDCAlertView,winkapp/SDCAlertView,adamkaplan/SDCAlertView,sberrevoets/SDCAlertView