This commit is contained in:
aozhiwei 2024-10-11 15:56:07 +08:00
parent b48122e8e9
commit 1693f33025
2 changed files with 1 additions and 2 deletions

View File

@ -29,7 +29,6 @@ class Bag
void InternalPushBagInfo(); void InternalPushBagInfo();
private: private:
Human* owner_ = nullptr; Human* owner_ = nullptr;
std::map<int, std::shared_ptr<BagItem>> items_; std::map<int, std::shared_ptr<BagItem>> items_;
}; };

View File

@ -2963,7 +2963,7 @@ void Bag::UseItem(int equip_id)
void Bag::PushBagInfo() void Bag::PushBagInfo()
{ {
owner_->room->xtimer.SetTimeoutEx owner_->room->xtimer.SetTimeoutEx
(500 / FRAME_RATE_MS, (1000 / FRAME_RATE_MS,
[this] (int event, const a8::Args* args) [this] (int event, const a8::Args* args)
{ {
if (a8::TIMER_EXEC_EVENT == event) { if (a8::TIMER_EXEC_EVENT == event) {