diff options
author | Och Noe <och_noe@forksworld.de> | 2021-06-01 08:22:19 +0200 |
---|---|---|
committer | Och Noe <och_noe@forksworld.de> | 2021-06-01 08:22:19 +0200 |
commit | b3a48ed6479fb876bb0645fcf04f2ce2dd34eaff (patch) | |
tree | 3feac01902977366c4eb216149ec75aa203dc88e /init.lua | |
parent | cb16b380efc63a3cc20e22af83ebf54c614a63b2 (diff) | |
download | cs_waypoints-b3a48ed6479fb876bb0645fcf04f2ce2dd34eaff.tar.gz cs_waypoints-b3a48ed6479fb876bb0645fcf04f2ce2dd34eaff.tar.bz2 cs_waypoints-b3a48ed6479fb876bb0645fcf04f2ce2dd34eaff.zip |
local variables were not declared as local
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -129,15 +129,15 @@ end local function stack_push() local point = minetest.localplayer:get_pos() - wp_stack = load_waypoints_stack() - count = #wp_stack +1 + local wp_stack = load_waypoints_stack() + local count = #wp_stack +1 wp_stack[count] = point mod_storage:set_string('waypoints_stack', minetest.serialize(wp_stack)) end local function stack_pop() - wp_stack = load_waypoints_stack() - count = 0 + local wp_stack = load_waypoints_stack() + local count = 0 if nil ~= wp_stack then count = #wp_stack end if count<1 then minetest.display_chat_message('stack empty - no teleporting') |