From: Perttu Ahola Date: Sun, 27 Nov 2011 11:19:20 +0000 (+0200) Subject: Fix mod dependency sort X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=2e42391b869f8e0290ac9f5c94b9529c5e410d02;p=zefram%2Fminetest%2Fminetest_engine.git Fix mod dependency sort --- diff --git a/src/server.cpp b/src/server.cpp index f3e497ff..4797965f 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -986,7 +986,7 @@ static core::list getMods(core::list &modspaths) mods_sorted.push_back(mod); for(core::list::Iterator i = mods_unsorted.begin(); i != mods_unsorted.end(); i++){ - ModSpec mod2 = *i; + ModSpec &mod2 = *i; if(mod2.unsatisfied_depends.empty()) continue; mod2.unsatisfied_depends.erase(mod.name); @@ -998,7 +998,7 @@ static core::list getMods(core::list &modspaths) // Check unsatisfied dependencies for(core::list::Iterator i = mods_unsorted.begin(); i != mods_unsorted.end(); i++){ - ModSpec mod = *i; + ModSpec &mod = *i; if(mod.unsatisfied_depends.empty()) continue; errorstream<<"mod \""<