From c8dd761822a9031183761d69188f15e14c7fe74f Mon Sep 17 00:00:00 2001 From: "David C. Bishop" Date: Fri, 9 Feb 2018 19:56:13 +1100 Subject: [PATCH] Read correct arg for 'worldPosOffset' --- client_commandline/src/client_commandline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_commandline/src/client_commandline.cpp b/client_commandline/src/client_commandline.cpp index bd0a0de2..d22ea5fa 100644 --- a/client_commandline/src/client_commandline.cpp +++ b/client_commandline/src/client_commandline.cpp @@ -480,7 +480,7 @@ void deviceOffsets(int argc, const char * argv[]) { if (argc < 8) { throw std::runtime_error("Error: Too few arguments."); } - if (std::strcmp(argv[3], "worldPosOffset") == 0) { + if (std::strcmp(argv[4], "worldPosOffset") == 0) { universe = 1; type = 2; } else if (std::strcmp(argv[4], "worldRotOffset") == 0) {