mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-10 04:31:34 -10:00
The bounds check was not correct for 1-based indices. I moved the Lua->C++ index conversion before the bounds check so that it makes more sense. Also, atoi isn't a reliable way for converting a string to an integer.