Replace all usages of atoi() with help.Int()

This will prevent any undefined behavior that might occur as a result of
having invalid input passed into atoi().
This commit is contained in:
Misa
2020-08-06 21:31:29 -07:00
committed by Ethan Lee
parent 037065910f
commit 78e87effe7
4 changed files with 129 additions and 129 deletions

View File

@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
{
ARG_INNER({
savefileplaytest = true;
int v = std::atoi(argv[i+1]);
int v = help.Int(argv[i+1]);
if (ARG("-playx")) savex = v;
else if (ARG("-playy")) savey = v;
else if (ARG("-playrx")) saverx = v;