From 8cf9c0d93f6243ad1f9dc35b00b5d91ae288e48a Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 31 May 2017 10:33:25 +0200 Subject: [PATCH] [Clantags] More fixes --- src/Components/Modules/Clantags.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Components/Modules/Clantags.cpp b/src/Components/Modules/Clantags.cpp index 97a96a23..84c009bb 100644 --- a/src/Components/Modules/Clantags.cpp +++ b/src/Components/Modules/Clantags.cpp @@ -10,8 +10,8 @@ namespace Components { const char* clantag = Game::Info_ValueForKey(infoString, std::to_string(i).data()); - if (clantag) Tags[i] = clantag; - else Tags[i].clear(); + if (clantag) Clantags::Tags[i] = clantag; + else Clantags::Tags[i].clear(); } } @@ -19,7 +19,7 @@ namespace Components { std::string list; - for (int i = 0; i < 18; i++) + for (int i = 0; i < 18; ++i) { char clantag[5] = { 0 }; @@ -37,11 +37,11 @@ namespace Components const char* Clantags::GetUserClantag(std::uint32_t clientnum, const char* playername) { - if (Tags[clientnum].empty()) return playername; - return Utils::String::VA("[%s] %s", Tags[clientnum].data(), playername); + if (Clantags::Tags[clientnum].empty()) return playername; + return Utils::String::VA("[%s] %s", Clantags::Tags[clientnum].data(), playername); } - void __declspec(naked) Clantags::DrawPlayerNameOnScoreboard() + __declspec(naked) void Clantags::DrawPlayerNameOnScoreboard() { __asm {