diff --git a/client/main.lua b/client/main.lua index 65d08ff..21aa6be 100644 --- a/client/main.lua +++ b/client/main.lua @@ -125,6 +125,7 @@ end ---@param data string | table -- The player job or an array of jobs to check against ---@return boolean -- Returns true if the job is valid local function isJobValid(data) + if PlayerData.job == nil then return false end local jobType = PlayerData.job.type local jobName = PlayerData.job.name