From 2ef45bd7ee8bf466c52a90e286370f5221bc59e0 Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Mon, 3 Jun 2024 22:28:37 -0500 Subject: [PATCH] use empty --- dGame/dUtilities/SlashCommands/GMGreaterThanZeroCommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dGame/dUtilities/SlashCommands/GMGreaterThanZeroCommands.cpp b/dGame/dUtilities/SlashCommands/GMGreaterThanZeroCommands.cpp index e2802d62..e71c0058 100644 --- a/dGame/dUtilities/SlashCommands/GMGreaterThanZeroCommands.cpp +++ b/dGame/dUtilities/SlashCommands/GMGreaterThanZeroCommands.cpp @@ -324,7 +324,7 @@ namespace GMGreaterThanZeroCommands { } void Spectate(Entity* entity, const SystemAddress& sysAddr, const std::string args) { - if (args.length() <= 0) GameMessages::SendSlashCommandFeedbackText(entity, u"No player Given"); + if (args.empty()) GameMessages::SendSlashCommandFeedbackText(entity, u"No player Given"); auto player = PlayerManager::GetPlayer(args); if (!player) GameMessages::SendSlashCommandFeedbackText(entity, u"Player not found"); GameMessages::SendSlashCommandFeedbackText(entity, u"Spectating Player");