fix incorrect next item ID during game join

This commit is contained in:
Martin Michelsen
2023-12-27 10:36:10 -08:00
parent 2dd7601dbd
commit 910555f299
4 changed files with 37 additions and 5 deletions
+1 -4
View File
@@ -905,12 +905,9 @@ static void on_change_floor_6x1F(shared_ptr<Client> c, uint8_t command, uint8_t
if (is_pre_v1(c->version())) {
check_size_t<G_SetPlayerFloor_DCNTE_6x1F>(data, size);
// DC NTE and 11/2000 don't send 6F when they're done loading, so we clear
// the loading flag here instead. On these versions, it also seems to be
// necessary to assign item IDs again here.
// the loading flag here instead.
if (c->config.check_flag(Client::Flag::LOADING)) {
c->config.clear_flag(Client::Flag::LOADING);
auto l = c->require_lobby();
l->assign_inventory_and_bank_item_ids(c);
}
} else {