diff --git a/changelog.txt b/changelog.txt index 25f0d34..2185630 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +--------------------------------------------------------------------------------------------------- +Version: 0.10.9 +Date: 2019-06-10 + + Bugfixes: + - Fixed crash on placing first LTN stop (https://mods.factorio.com/mod/LTN_Tracker/discussion/5cfd4f17d9e222000bc70d44) + --------------------------------------------------------------------------------------------------- Version: 0.10.8 Date: 2019-04-28 diff --git a/info.json b/info.json index 175e4e1..6a0f53c 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "LTN_Tracker", -"version": "0.10.8", +"version": "0.10.9", "title": "LTN Tracker", "author": "eduran", "contact": "https://forums.factorio.com/memberlist.php?mode=viewprofile&u=1699", diff --git a/script/data_processing.lua b/script/data_processing.lua index a9a9d67..8a6713d 100644 --- a/script/data_processing.lua +++ b/script/data_processing.lua @@ -158,8 +158,7 @@ local function update_stops(stop_id) -- state 1 end local function check_for_new_stops() - if not data.stop_ids then log2(data) end - for _, stop_id in pairs(data.stop_ids) do + for _, stop_id in pairs(data.stop_ids or {}) do if not raw.stops[stop_id] then ui.clear_station_filter() break