summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-10-22 19:03:13 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-10-22 19:03:13 +0100
commite592c18af6c945f771f9dbcd2f2e5ef3caf18319 (patch)
treecf78459541ef1593756d5d4fe65c10c6e43f47e1
parent954565efa2624421646ef6f282abc052d553b7c8 (diff)
added missing local
-rw-r--r--api.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.lua b/api.lua
index 546872e..e1cadcc 100644
--- a/api.lua
+++ b/api.lua
@@ -2413,7 +2413,7 @@ local count_mobs = function(pos, type)
if not objs[n]:is_player() then
- obj = objs[n]:get_luaentity()
+ local obj = objs[n]:get_luaentity()
if obj and obj.name and obj.name == type then
num = num + 1