From 0da8167a0ad596a961a90302a40e15135f92aaf2 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Tue, 20 Jun 2023 19:10:41 +0200 Subject: [PATCH] maint: re-order local variable definitions --- src/Components/Modules/RCon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/RCon.cpp b/src/Components/Modules/RCon.cpp index b0349093..6c5486bd 100644 --- a/src/Components/Modules/RCon.cpp +++ b/src/Components/Modules/RCon.cpp @@ -39,13 +39,13 @@ namespace Components Password.clear(); return; } - - auto* addr = reinterpret_cast(0xA5EA44); + if (Password.empty()) { Logger::Print("You need to be logged in and connected to a server!\n"); } + auto* addr = reinterpret_cast(0xA5EA44); Network::Address target(addr); if (!target.isValid() || target.getIP().full == 0) {