Fix a bug when my buddy was incorrect when disconnecting from online quest

This commit is contained in:
GreenComfyTea
2023-01-14 13:52:24 +02:00
parent 7b9e376db1
commit 3b94c67071
2 changed files with 4 additions and 5 deletions

View File

@@ -187,12 +187,13 @@ function non_players.update_my_otomos()
if name ~= nil and name ~= "" then
local level = otomo_create_data_level_field:get_data(first_otomo) or 0;
if non_players.otomo_list[0] == nil then
non_players.otomo_list[0] = non_players.new(0, name, level, players.types.my_otomo);
local myself_id = players.myself.id;
if non_players.otomo_list[myself_id] == nil then
non_players.otomo_list[myself_id] = non_players.new(0, name, level, players.types.my_otomo);
end
if cached_config.settings.show_my_otomos_separately then
table.insert(players.display_list, non_players.otomo_list[0]);
table.insert(players.display_list, non_players.otomo_list[myself_id]);
end
end
end

View File

@@ -582,8 +582,6 @@ function players.update_player_list_(hunter_info_field_)
end
for i = 0, count - 1 do
local player_info = get_item_method:call(player_info_list, i);
if player_info == nil then
goto continue