fix incorrect next item ID during game join
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user