mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-26 15:42:21 +00:00
[Databuckets] Fix issue with expired databuckets not being expired and returned properly (#3504)
This commit is contained in:
1 parent
fb3159b657
commit
4c2f9a4423
5 files changed
+35
-57
No files matched your search
+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