I don't quite see the point of this check - this shouldn't happen anyway, and the game won't react badly if the bubble DOES appear at -1, -1. You never reset corpseX and corpseY anyway. Maybe you should rather check whether the bubble image is in range... though I guess GM doesn't make any problems in that case either, so maybe not.