Skip to content
Snippets Groups Projects
Commit 2f640888 authored by Auke Kok's avatar Auke Kok Committed by est31
Browse files

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.
```
parent 80cec470
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment