From 5baf96d02131a0185bf82d49f1e6ae738f6adc55 Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Mon, 13 May 2019 23:41:12 +1000 Subject: [PATCH] apparently optind needs to be reset manually? what even is getopt --- src/tmx2gba.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tmx2gba.cpp b/src/tmx2gba.cpp index f98a85c..64f5cc4 100644 --- a/src/tmx2gba.cpp +++ b/src/tmx2gba.cpp @@ -85,6 +85,7 @@ void GetoptClear () next = nullptr; #else optreset = 1; + optind = 1; #endif }