Skip to content

Commit

Permalink
Make options local here.
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
sofar authored and est31 committed Mar 24, 2016
1 parent 80cec47 commit 2f64088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/game/chatcommands.lua
Expand Up @@ -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
Expand Down

0 comments on commit 2f64088

Please sign in to comment.