Lua main menu: Fix world creation dialog
authorkwolekr <kwolekr@minetest.net>
Mon, 8 Jul 2013 00:36:41 +0000 (20:36 -0400)
committerkwolekr <kwolekr@minetest.net>
Mon, 8 Jul 2013 00:37:00 +0000 (20:37 -0400)
builtin/mainmenu.lua

index 87c96d690cc580766ac6a767f0763a7615ac3615..6670a5eb81765e556d3d34780047d1101c3b2885 100644 (file)
@@ -585,7 +585,7 @@ function tabbuilder.handle_create_world_buttons(fields)
                        
                        local found = false
                        for i=1,#menu.worldlist,1 do
-                               if worldlist[i].name == worldname then
+                               if menu.worldlist[i].name == worldname then
                                        found = true
                                        break
                                end