From c54422183896c3181d122c0edd0f2b526265b89d Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Sun, 1 Jan 2023 13:55:17 -0500 Subject: [PATCH] [Bug Fix] Fix #zone 0. (#2691) # Notes - `#zone 0` was used to send you to safe coordinates, this has been broken for a while now. --- zone/gm_commands/zone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/gm_commands/zone.cpp b/zone/gm_commands/zone.cpp index 0b0ac9cf2..ef4989eaa 100644 --- a/zone/gm_commands/zone.cpp +++ b/zone/gm_commands/zone.cpp @@ -18,7 +18,7 @@ void command_zone(Client *c, const Seperator *sep) zone_id = std::stoi(zone_input); // validate - if (!GetZone(zone_id)) { + if (zone_id != 0 && !GetZone(zone_id)) { c->Message(Chat::White, fmt::format("Could not find zone by id [{}]", zone_id).c_str()); return; }