Skip to content

Commit

Permalink
add check for empty category (#1582)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Jurczyk <[email protected]>
  • Loading branch information
tjurczyk and Tomasz Jurczyk authored May 1, 2024
1 parent 6a406d2 commit 10c76dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skrypty/misc/knowledge/libraries.lua
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function scripts.misc.knowledge.process_new_location(internal_id)
local popup_f_calls = {}
local popup_f_hints = {}
for category, progress in pairs(scripts.misc.knowledge.library_to_about_to_progress[internal_id]) do
if progress < 1 then
if category ~= "" and progress < 1 then
table.insert(popup_f_calls,
function()
sendAll(
Expand Down

0 comments on commit 10c76dc

Please sign in to comment.