~raiguard/TaskList

e7515015c333cc9e06ca4fe62fd9474d07406d04 — raiguard 8 months ago 91fe3e5
Check for assignee existence before indexing (fixes #19)
2 files changed, 3 insertions(+), 1 deletions(-)

M src/changelog.txt
M src/scripts/gui/edit-task/index.lua
M src/changelog.txt => src/changelog.txt +2 -0
@@ 3,6 3,8 @@ Version: 0.4.2
Date: ????
  Changes:
    - Added Korean locale (by x2605) (#18)
  Bugfixes:
    - Fixed a crash when adding a private subtask (#19)
---------------------------------------------------------------------------------------------------
Version: 0.4.1
Date: 2022-02-24

M src/scripts/gui/edit-task/index.lua => src/scripts/gui/edit-task/index.lua +1 -1
@@ 99,7 99,7 @@ function index.new(player, player_table, options)
  end
  if owner.object_name == "LuaPlayer" then
    assignable = false
    assignee_index = ParentTask and ParentTask.assignee.index or 0
    assignee_index = ParentTask and ParentTask.assignee and ParentTask.assignee.index or 0
  else
    assignee_index = Task.assignee and Task.assignee.index or 0
  end