mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 13:01:29 -10:00
Since atoi return 0 on error the code tries to access the waypoint list with index -1 which causes an assert in the lookup code. This fixes that by using the error detection capabilities of strtol.