Use table.copy instead of using = syntax

Using table.copy ensures that a new copy of the table is created
This commit is contained in:
ANAND 2019-04-05 19:37:18 +05:30 committed by stujones11
parent 1b5dbda4cf
commit 9dacd39bbd
1 changed files with 2 additions and 2 deletions

View File

@ -56,9 +56,9 @@ shooter.default_particles = {
local shots = {}
local shooting = {}
local config = shooter.config
local config = table.copy(shooter.config)
local server_step = minetest.settings:get("dedicated_server_step")
local v3d = vector
local v3d = table.copy(vector)
local PI = math.pi
local sin = math.sin
local cos = math.cos