Skip to content

Commit

Permalink
Small safety measure
Browse files Browse the repository at this point in the history
  • Loading branch information
Igigog committed Feb 5, 2023
1 parent 8907384 commit 211a5ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamedata/scripts/igi_target_kill.script
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ end

local function get_npc_value(se_npc)
local value = 1000
local tier = string.match(se_npc:section_name(), "%d")
local tier = string.match(se_npc:section_name(), "%d") or ""
igi_helper.trace_dbg(se_npc:section_name(), tier)
local factors = igi_db.SectionView('tiers.ltx', 'npc_tier_factor')

Expand Down

0 comments on commit 211a5ba

Please sign in to comment.