Skip to content

Commit e81c325

Browse files
committed
Fix crash
1 parent 6729fd8 commit e81c325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mods/ctf/ctf_landmine/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ local landmine_globalstep_counter = 0.0
5353

5454
local function is_self_landmine(object_ref, landmine)
5555
local pname = object_ref:get_player_name()
56-
if pname == "" then
56+
if pname == "" or not landmine then
5757
return nil -- the object ref is not a player
5858
end
5959

0 commit comments

Comments
 (0)