diff options
author | Auke Kok <sofar@foo-projects.org> | 2016-03-22 21:59:23 -0700 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2016-03-24 16:52:26 +0100 |
commit | 2f640888d8c0224bcd3ceb13454bd6542d5ae5ef (patch) | |
tree | e5d54caea639f499b8c978d6d947076849a13f0d | |
parent | 80cec4702dde598ded6a5b31e291d2973b26cc7b (diff) | |
download | minetest-2f640888d8c0224bcd3ceb13454bd6542d5ae5ef.tar.gz minetest-2f640888d8c0224bcd3ceb13454bd6542d5ae5ef.tar.bz2 minetest-2f640888d8c0224bcd3ceb13454bd6542d5ae5ef.zip |
Make `options` local here.
Undoubtably this may cause problems later if unchecked.
```
2016-03-22 21:57:52: WARNING[Server]: Assignment to undeclared global "options" inside a function at .../sofar/git/minetest/bin/../builtin/game/chatcommands.lua:862.
```
-rw-r--r-- | builtin/game/chatcommands.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/chatcommands.lua b/builtin/game/chatcommands.lua index 0b1976640..4deff281d 100644 --- a/builtin/game/chatcommands.lua +++ b/builtin/game/chatcommands.lua @@ -859,7 +859,7 @@ core.register_chatcommand("clearobjects", { description = "clear all objects in world", privs = {server=true}, func = function(name, param) - options = {} + local options = {} if param == "" or param == "full" then options.mode = "full" elseif param == "quick" then |