summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-11 18:24:22 +0200
committerWuzzy <almikes@aol.com>2016-08-11 18:24:22 +0200
commit860358bcd1b30cbf5888588fe50d1b02dadbea43 (patch)
tree568be537c2d5187be9c6c327778b19dc7ea8e5b8
parente1a72e82064b6ec25250407c1f878b2036b54b03 (diff)
Fix accidental using of global variable “all”
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index d62d239..56df387 100644
--- a/init.lua
+++ b/init.lua
@@ -228,7 +228,7 @@ end
function playereffects.cancel_effect_type(effect_type_id, cancel_all, playername)
local effects = playereffects.get_player_effects(playername)
- if(cancel_all==nil) then all = false end
+ if(cancel_all==nil) then cancel_all = false end
for e=1, #effects do
if(effects[e].effect_type_id == effect_type_id) then
playereffects.cancel_effect(effects[e].effect_id)