Add out-of-bounds check (crashes, exiting)
Add out-of-bounds check (crashes, exiting)

Moved the out-of-bounds check from before plane movement to after,
because it now belongs there.

KeyboardFire/atcso