From b33babd31668e0320f16ac0aa96bbb0dca2e8393 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 6 Sep 2015 13:20:37 +0200 Subject: [PATCH] fix cursed factions (broke it during bit32 changes) --- scripts/eressea/cursed.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/eressea/cursed.lua b/scripts/eressea/cursed.lua index 2501a941b..ecf4db9de 100644 --- a/scripts/eressea/cursed.lua +++ b/scripts/eressea/cursed.lua @@ -9,7 +9,7 @@ local function curse(file) f = get_faction(line) if not f then print("no such faction: " .. line) - elseif bitset(f.flags, 16) then + elseif not bitset(f.flags, 16) then print("cursing " .. tostring(f)) f.flags = f.flags + 16 else