diff --git a/data-otservbr-global/scripts/creaturescripts/customs/freequests.lua b/data-otservbr-global/scripts/creaturescripts/customs/freequests.lua index 1cbca17c563..59360ca0a37 100644 --- a/data-otservbr-global/scripts/creaturescripts/customs/freequests.lua +++ b/data-otservbr-global/scripts/creaturescripts/customs/freequests.lua @@ -405,11 +405,10 @@ local function playerFreeQuestStart(playerId, index) return end - if player:getStorageValue(questTable[index].storage) ~= questTable[index].storageValue then + if questTable[index].storage and player:getStorageValue(questTable[index].storage) ~= questTable[index].storageValue then player:setStorageValue(questTable[index].storage, questTable[index].storageValue) end end - addEvent(playerFreeQuestStart, 500, playerId, index) end