1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-16 07:20:31 +01:00

fix local var

This commit is contained in:
crabman77 2015-07-18 20:45:17 +02:00
parent f2c7377a11
commit e31c510563

View File

@ -455,6 +455,7 @@ function mobs:register_mob(name, def)
and self.attacks_monsters
and self.state ~= "attack" then
local s = self.object:getpos()
local p, dist
local obj = nil
for _, oir in pairs(minetest.get_objects_inside_radius(s,self.view_range)) do
obj = oir:get_luaentity()