mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 10:11:37 +00:00
fix zone
This commit is contained in:
@@ -50,7 +50,7 @@ void command_databuckets(Client *c, const Seperator *sep)
|
||||
!npc_id &&
|
||||
!bot_id
|
||||
) {
|
||||
if (!DataBucket::DeleteData(key_filter)) {
|
||||
if (!DataBucket::DeleteData(&database, key_filter)) {
|
||||
c->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
@@ -76,7 +76,7 @@ void command_databuckets(Client *c, const Seperator *sep)
|
||||
k.npc_id = npc_id;
|
||||
k.bot_id = bot_id;
|
||||
|
||||
if (!DataBucket::DeleteData(k)) {
|
||||
if (!DataBucket::DeleteData(&database, k)) {
|
||||
c->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
@@ -123,7 +123,7 @@ void command_databuckets(Client *c, const Seperator *sep)
|
||||
|
||||
const std::string& expires_string = expires == 0 ? "Never" : std::to_string(expires);
|
||||
|
||||
DataBucket::SetData(k);
|
||||
DataBucket::SetData(&database, k);
|
||||
|
||||
c->Message(
|
||||
Chat::White,
|
||||
|
||||
@@ -58,7 +58,7 @@ void command_gmzone(Client *c, const Seperator *sep)
|
||||
zone_version
|
||||
);
|
||||
|
||||
auto existing_zone_instance = DataBucket::GetData(bucket_key);
|
||||
auto existing_zone_instance = DataBucket::GetData(&database, bucket_key);
|
||||
uint16 instance_id = 0;
|
||||
uint32 duration = 100000000;
|
||||
|
||||
@@ -99,6 +99,7 @@ void command_gmzone(Client *c, const Seperator *sep)
|
||||
);
|
||||
|
||||
DataBucket::SetData(
|
||||
&database,
|
||||
bucket_key,
|
||||
std::to_string(instance_id)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user