]> git.lizzy.rs Git - worldedit.git/commitdiff
Fix assignment to undeclared global "sign" @ worldedit_commands/init.lua:791
authorsfan5 <sfan5@live.de>
Tue, 12 Sep 2017 12:58:26 +0000 (14:58 +0200)
committersfan5 <sfan5@live.de>
Tue, 12 Sep 2017 12:58:26 +0000 (14:58 +0200)
worldedit_commands/init.lua

index a102dbcbf43b7bcb96e699d5204cbabd36d3c6ac..6b6d2a7a35e495cbc4ddd5303c5a4341411a4b3a 100644 (file)
@@ -788,6 +788,7 @@ minetest.register_chatcommand("/move", {
                end\r
                amount = tonumber(amount)\r
                if axis == "?" then\r
+                       local sign\r
                        axis, sign = worldedit.player_axis(name)\r
                        amount = amount * sign\r
                end\r