From 66750dc88e3b1001e2141dd965345ae51095e0bb Mon Sep 17 00:00:00 2001
From: sapier <Sapier at GMX dot net>
Date: Thu, 14 Mar 2013 00:24:07 +0000
Subject: [PATCH] fix typo invalid for loop end

---
 src/scriptapi.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp
index f95f5a29d..13696eabf 100644
--- a/src/scriptapi.cpp
+++ b/src/scriptapi.cpp
@@ -906,7 +906,7 @@ static int l_get_modnames(lua_State *L)
 	{
 		bool added = false;
 		for(std::list<std::string>::iterator x = mods_sorted.begin();
-		    x != mods_unsorted.end(); ++x)
+		    x != mods_sorted.end(); ++x)
 		{
 			// I doubt anybody using Minetest will be using
 			// anything not ASCII based :)
-- 
GitLab