summaryrefslogtreecommitdiff
path: root/waypoints.lua
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-09-07 15:08:52 -0400
committerShadowNinja <shadowninja@minetest.net>2014-09-07 15:08:52 -0400
commit4fce317e2eef69b8065fd405ed5703e74958e2f8 (patch)
treea870e6bbd9c6365aefa8e3215107af35f514b3d4 /waypoints.lua
parent527812fa96b6c73c71c7a3bf8a48cb651ec90438 (diff)
Fix crash when changing waypoint name
Diffstat (limited to 'waypoints.lua')
-rw-r--r--waypoints.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/waypoints.lua b/waypoints.lua
index 062814d..94f9f11 100644
--- a/waypoints.lua
+++ b/waypoints.lua
@@ -184,7 +184,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if fields["rename_waypoint"..i] then
hit = true
- waypoints[i] = waypoints[i] or {}
+ temp[i] = temp[i] or {}
temp[i].edit = true
update_formspec = true
end