mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +00:00
[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.
This commit is contained in:
parent
16103b510d
commit
c544221838
@ -18,7 +18,7 @@ void command_zone(Client *c, const Seperator *sep)
|
|||||||
zone_id = std::stoi(zone_input);
|
zone_id = std::stoi(zone_input);
|
||||||
|
|
||||||
// validate
|
// 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());
|
c->Message(Chat::White, fmt::format("Could not find zone by id [{}]", zone_id).c_str());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user