From 108aa8061b43f9a69962a389e7dd947d1bdc9331 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sat, 17 Sep 2011 20:28:46 +0500 Subject: modulemanager: Fixed undefined global access in broadcast of item-remove events on module unload. --- core/modulemanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modulemanager.lua') diff --git a/core/modulemanager.lua b/core/modulemanager.lua index b89c5af3..8d4d5633 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -189,7 +189,7 @@ function unload(host, name, ...) for i = #t,1,-1 do local value = t[i]; t[i] = nil; - hosts[host].events.fire_event("item-removed/"..key, {source = self, item = value}); + hosts[host].events.fire_event("item-removed/"..key, {source = mod.module, item = value}); end end end -- cgit v1.2.3