From 33b406cff5d1ac613de2175d3f340c83c5e53ef7 Mon Sep 17 00:00:00 2001 From: Max5377 <69468517+Max5377@users.noreply.github.com> Date: Mon, 18 Sep 2023 14:24:01 +0300 Subject: [PATCH] Fix for commodity market in stock and demand reset Fixes commodity market in stock and demand reseting on save load --- data/libs/SpaceStation.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/libs/SpaceStation.lua b/data/libs/SpaceStation.lua index d912bcda6ec..5be9a6cf51b 100644 --- a/data/libs/SpaceStation.lua +++ b/data/libs/SpaceStation.lua @@ -1008,6 +1008,10 @@ Event.Register("onGameStart", function () visited = loaded_data.visited or {} police = loaded_data.police + + for station,_ in pairs(visited) do + createCommodityStock(station) + end for station,list in pairs(loaded_data.shipsOnSale) do shipsOnSale[station] = {}