From 9800fc54cc24ce1adc7f40553a248888a7f809a6 Mon Sep 17 00:00:00 2001
From: kopareigns <kopareigns@gmail.com>
Date: Mon, 8 Oct 2018 19:06:30 -0400
Subject: [PATCH] Fix

---
 src/SecExp/SecExpBackwardCompatibility.tw | 1 +
 src/SecExp/secInit.tw                     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/SecExp/SecExpBackwardCompatibility.tw b/src/SecExp/SecExpBackwardCompatibility.tw
index 17b38dcb25b..7e471b4611a 100644
--- a/src/SecExp/SecExpBackwardCompatibility.tw
+++ b/src/SecExp/SecExpBackwardCompatibility.tw
@@ -43,6 +43,7 @@
 <<if ndef $lastAttackWeeks>>
 	<<set $lastAttackWeeks = 0>>
 <</if>>
+<<set $lastRebellionWeeks = Number($lastRebellionWeeks) || 0>>
 <<if ndef $hasFoughtOnce>>
 	<<set $hasFoughtOnce = 0>>
 <</if>>
diff --git a/src/SecExp/secInit.tw b/src/SecExp/secInit.tw
index 84654fea324..39fea547054 100644
--- a/src/SecExp/secInit.tw
+++ b/src/SecExp/secInit.tw
@@ -14,6 +14,7 @@
 <<set $attackType = "none">>
 <<set $attackThisWeek = 0>>
 <<set $lastAttackWeeks = 0>>
+<<set $lastRebellionWeeks = 0>>
 <<set $hasFoughtOnce = 0>>
 <<set $hasFoughtMajorBattleOnce = 0>>
 <<set $hasRebelledOnce = 0>>
-- 
GitLab