mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[Bug Fix] Fix Bot Cloning (#4186)
# Notes - We were not setting `inventories_index` to `0` so it was trying to use the pre-existing unique identifier, causing the query to fail.
This commit is contained in:
parent
f829a99e6d
commit
e5bdbc4f1e
@ -1788,7 +1788,8 @@ bool BotDatabase::CreateCloneBotInventory(const uint32 bot_id, const uint32 clon
|
||||
}
|
||||
|
||||
for (auto& e : l) {
|
||||
e.bot_id = clone_id;
|
||||
e.inventories_index = 0;
|
||||
e.bot_id = clone_id;
|
||||
}
|
||||
|
||||
return BotInventoriesRepository::InsertMany(database, l);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user