Diff

core/modulemanager.lua @ 695:3384f2784795

modulemanager: Change pairs() to ipairs() to allow ordered module loading
author Matthew Wild <mwild1@gmail.com>
date Mon, 12 Jan 2009 03:27:18 +0000
parent 686:13ed38531f69
child 698:d8a678e40a0a
line wrap: on
line diff
--- a/core/modulemanager.lua	Mon Jan 12 02:59:45 2009 +0000
+++ b/core/modulemanager.lua	Mon Jan 12 03:27:18 2009 +0000
@@ -68,11 +68,11 @@
 	local disabled_set = {};
 	if modules_enabled then
 		if modules_disabled then
-			for _, module in pairs(modules_disabled) do
+			for _, module in ipairs(modules_disabled) do
 				disabled_set[module] = true;
 			end
 		end
-		for _, module in pairs(modules_enabled) do
+		for _, module in ipairs(modules_enabled) do
 			if not disabled_set[module] then
 				load(host, module);
 			end