From daab463cae407e7928f3e25b396a56f72d76d3f4 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Thu, 9 Mar 2023 00:33:36 +0100 Subject: [PATCH] bug fix for cards without victory points --- src/core/VictoryDisplay.ttslua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/VictoryDisplay.ttslua b/src/core/VictoryDisplay.ttslua index ef077fc8..8461b85f 100644 --- a/src/core/VictoryDisplay.ttslua +++ b/src/core/VictoryDisplay.ttslua @@ -197,7 +197,7 @@ function getCardVP(obj, notes) cardVP = tonumber(notes.locationBack.victory) end end - if cardVP > 0 then + if (cardVP or 0) > 0 then table.insert(countedVP, obj) end else