diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index 46ef493..9c2e954 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -995,7 +995,7 @@ function RolePlugin.bind(Role) for id, status in pairs(advEAchiev[self.advElChapter] or {}) do if status == -1 then local achvData = csvdb["adv_achievementCsv"][id] - if achvData.support ~= 0 then + if achvData and achvData.support ~= 0 then effect[achvData.support] = 1 end end -- libgit2 0.21.2