Fix swapped arguments to restore_position in download_inventory (#1095)

The path for a download that comes back with no player data called
restore_position(record, player), but the function takes (player, record).
That raised an error, so the download was never marked finished and the
player waited for the timeout dialog.

Co-authored-by: ILLISIS <jayson.harris01@gmail.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
authored and GitHub committed 2026-10-16 14:32:41 +03:00
1 parent ec51adc71c
commit 580c8ba493
1 file changed
+1 -1
@@ -36,7 +36,7 @@ local function download_inventory(player_name, data, number, total)
ensure_character(player)
-- Restore player position and driving state
restore_position(record, player)
restore_position(player, record)
script_data.active_downloads[player_name] = nil
player_record.dirty = player.connected