mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
[mcl_portals] Fix crash on access empty index trying to find portal after its destruction
This commit is contained in:
parent
cb2aae5a55
commit
05260d03d5
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ local function add_exit(p)
|
|||
local e = exits[k]
|
||||
for i = 1, #e do
|
||||
local t = e[i]
|
||||
if t.x == p.x and t.y == p.y and t.z == p.z then
|
||||
if t and t.x == p.x and t.y == p.y and t.z == p.z then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue