Fabi Marzan
Well-Known Member
- Joined
- Aug 31, 2020
- Messages
- 135
- Solutions
- 6
- Reaction score
- 67
Greetings, I hope you are well, I have a problem with the depot that doubles when placing items, that is, I try to add more depot to deposit and when placing an item in one of the depots, the ID is doubled in the depot, here I will show you some images and gifs.
Code:
Add:
As you can see, my Depot is doubled, any solution?
Code:
Code:
it->second->internalAddThing(Item::CreateItem(25453));
Add:
Lua:
DepotLocker* Player::getDepotLocker(uint32_t depotId)
{
auto it = depotLockerMap.find(depotId);
if (it != depotLockerMap.end()) {
return it->second.get();
}
it = depotLockerMap.emplace(depotId, new DepotLocker(ITEM_LOCKER)).first;
it->second->setDepotId(depotId);
it->second->internalAddThing(Item::CreateItem(25453));
it->second->internalAddThing(getDepotChest(depotId, true));
return it->second.get();
}
As you can see, my Depot is doubled, any solution?