mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 17:38:26 +00:00
[Databuckets] Fix issue with expired databuckets not being expired and returned properly (#3504)
This commit is contained in:
+4
-4
@@ -1276,10 +1276,10 @@ uint8 Client::GetCharMaxLevelFromBucket()
|
||||
DataBucketKey k = GetScopedBucketKeys();
|
||||
k.key = "CharMaxLevel";
|
||||
|
||||
auto bucket_value = DataBucket::GetData(k);
|
||||
if (!bucket_value.empty()) {
|
||||
if (Strings::IsNumber(bucket_value)) {
|
||||
return static_cast<uint8>(Strings::ToUnsignedInt(bucket_value));
|
||||
auto b = DataBucket::GetData(k);
|
||||
if (!b.value.empty()) {
|
||||
if (Strings::IsNumber(b.value)) {
|
||||
return static_cast<uint8>(Strings::ToUnsignedInt(b.value));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user