diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-09-07 15:08:52 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-09-07 15:08:52 -0400 |
commit | 4fce317e2eef69b8065fd405ed5703e74958e2f8 (patch) | |
tree | a870e6bbd9c6365aefa8e3215107af35f514b3d4 | |
parent | 527812fa96b6c73c71c7a3bf8a48cb651ec90438 (diff) |
Fix crash when changing waypoint name
-rw-r--r-- | waypoints.lua | 2 |
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 |