mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
[Code] ZoneStore Global to Singleton Cleanup (#4934)
This commit is contained in:
@@ -273,7 +273,7 @@ void SetZoneData(Client *c, const Seperator *sep)
|
||||
entity_list.QueueClients(c, outapp);
|
||||
safe_delete(outapp);
|
||||
|
||||
zone_store.LoadZones(content_db);
|
||||
ZoneStore::Instance()->LoadZones(content_db);
|
||||
|
||||
c->Message(
|
||||
Chat::White,
|
||||
|
||||
@@ -26,7 +26,7 @@ void command_zone(Client *c, const Seperator *sep)
|
||||
}
|
||||
else {
|
||||
// validate
|
||||
if (!zone_store.GetZone(zone_input)) {
|
||||
if (!ZoneStore::Instance()->GetZone(zone_input)) {
|
||||
c->Message(Chat::White, fmt::format("Could not find zone by short_name [{}]", zone_input).c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ void command_zone_shard(Client *c, const Seperator *sep)
|
||||
}
|
||||
else {
|
||||
// validate
|
||||
if (!zone_store.GetZone(zone_input)) {
|
||||
if (!ZoneStore::Instance()->GetZone(zone_input)) {
|
||||
c->Message(Chat::White, fmt::format("Could not find zone by short_name [{}]", zone_input).c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user