Skip to content

Commit

Permalink
Fix for commodity market in stock and demand reset
Browse files Browse the repository at this point in the history
Fixes commodity market in stock and demand reseting on save load
  • Loading branch information
Max5377 committed Sep 19, 2023
1 parent 1957b8d commit 33b406c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/libs/SpaceStation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {}
Expand Down

0 comments on commit 33b406c

Please sign in to comment.