From f7bc2d96bfb0e7fea53c0e8e0565346298ed9308 Mon Sep 17 00:00:00 2001 From: superp00t Date: Tue, 15 Aug 2023 03:58:53 -0400 Subject: [PATCH] fix(command): C++11 doesn't have std::size, use sizeof --- src/client/CmdLine.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/client/CmdLine.cpp b/src/client/CmdLine.cpp index f8f42ce..65986e8 100644 --- a/src/client/CmdLine.cpp +++ b/src/client/CmdLine.cpp @@ -1,7 +1,5 @@ #include "client/CmdLine.hpp" -#include - #include int32_t CmdLineProcess() { @@ -26,7 +24,7 @@ int32_t CmdLineProcess() { }; // load engine-specific launch flags - SCmdRegisterArgList(s_argList, std::size(s_argList)); + SCmdRegisterArgList(s_argList, sizeof(s_argList) / sizeof(ARGLIST)); // parse command line return SCmdProcessCommandLine(0, 0); @@ -54,7 +52,7 @@ void ProcessCommandLine() { }; // Load wow-specific launch flags - SCmdRegisterArgList(s_wowArgList, std::size(s_wowArgList)); + SCmdRegisterArgList(s_wowArgList, sizeof(s_wowArgList) / sizeof(ARGLIST)); CmdLineProcess(); }