mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
[Fix] Databuckets Account Cache Loading (#4855)
This commit is contained in:
parent
dca892e258
commit
50ad97aa0b
@ -1,6 +1,7 @@
|
|||||||
#include "data_bucket.h"
|
#include "data_bucket.h"
|
||||||
#include "zonedb.h"
|
#include "zonedb.h"
|
||||||
#include "mob.h"
|
#include "mob.h"
|
||||||
|
#include "client.h"
|
||||||
#include "worldserver.h"
|
#include "worldserver.h"
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
@ -359,7 +360,8 @@ bool DataBucket::GetDataBuckets(Mob *mob)
|
|||||||
BulkLoadEntitiesToCache(DataBucketLoadType::Bot, {id});
|
BulkLoadEntitiesToCache(DataBucketLoadType::Bot, {id});
|
||||||
}
|
}
|
||||||
else if (mob->IsClient()) {
|
else if (mob->IsClient()) {
|
||||||
BulkLoadEntitiesToCache(DataBucketLoadType::Account, {id});
|
uint32 account_id = mob->CastToClient()->AccountID();
|
||||||
|
BulkLoadEntitiesToCache(DataBucketLoadType::Account, {account_id});
|
||||||
BulkLoadEntitiesToCache(DataBucketLoadType::Client, {id});
|
BulkLoadEntitiesToCache(DataBucketLoadType::Client, {id});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user