Fix crash when changing waypoint name

This commit is contained in:
ShadowNinja 2014-09-07 15:08:52 -04:00
parent 527812fa96
commit 4fce317e2e

View File

@ -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