From 58cde58b4510a5841f8e4322fa24e712251b5896 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" <277429+mackal@users.noreply.github.com> Date: Fri, 4 Mar 2022 12:24:13 -0500 Subject: [PATCH] Fix order of operations issues in worldshutdown command (#2029) --- zone/gm_commands/worldshutdown.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/gm_commands/worldshutdown.cpp b/zone/gm_commands/worldshutdown.cpp index 4f27c4ad9..9c173c7d0 100755 --- a/zone/gm_commands/worldshutdown.cpp +++ b/zone/gm_commands/worldshutdown.cpp @@ -12,8 +12,8 @@ void command_worldshutdown(Client *c, const Seperator *sep) if ( sep->IsNumber(1) && sep->IsNumber(2) && - (time = std::stoi(sep->arg[1]) > 0) && - (interval = std::stoi(sep->arg[2]) > 0) + ((time = std::stoi(sep->arg[1])) > 0) && + ((interval = std::stoi(sep->arg[2])) > 0) ) { int time_minutes = (time / 60); quest_manager.WorldWideMessage(