diff --git a/loadGameManager.js b/loadGameManager.js index ad09e44..22b54ca 100644 --- a/loadGameManager.js +++ b/loadGameManager.js @@ -186,7 +186,7 @@ G.LoadGame = function () { G.stats.illness = loadObject.stats.illness; G.economy.innCost = loadObject.economy.innCost; G.economy.innStays = loadObject.economy.innStays; - G.economy.itemWorth = loadObject.economy.itemWorth.slice(); + G.economy.cargoItemWorth = loadObject.economy.itemWorth.slice(); G.economy.cargoSold = loadObject.economy.cargoSold.slice(); G.economy.cargoBought = loadObject.economy.cargoBought.slice(); diff --git a/rooms/oceanRoom.js b/rooms/oceanRoom.js index a762c34..74ba3b6 100644 --- a/rooms/oceanRoom.js +++ b/rooms/oceanRoom.js @@ -103,12 +103,13 @@ rm_Ocean.RunClock = function () { if (rm_Ocean.clockTimerCount > rm_Ocean.clockTimerCutoff) { rm_Ocean.clockTimerCount = 0; // Play New_Day sound. - G.SaveGame(); G.economy.UpdateEconomy(); for (var i = 0; i < G.map.length; i++) { G.map[i].island.NewDay(); } + + G.SaveGame(); } if (rm_Ocean.clockTimerCount == 0 ||