From cb17455df16320649c3b7f691681edacc768a989 Mon Sep 17 00:00:00 2001
From: Arkerthan <arkerthan@mailbox.org>
Date: Wed, 1 Mar 2023 22:57:12 +0100
Subject: [PATCH] Fix broken V.PC usage

---
 src/js/economyJS.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/js/economyJS.js b/src/js/economyJS.js
index 95886e2f86c..9b1982a60a7 100644
--- a/src/js/economyJS.js
+++ b/src/js/economyJS.js
@@ -999,7 +999,7 @@ globalThis.calculateCosts = (function() {
 			costs += Math.trunc(rulesCost * 0.50);
 		} else {
 			if (!hasAllLimbs(V.PC)) {
-				costs += Math.trunc(getLimbCount(V.PCd, 0) * 0.25);
+				costs += Math.trunc(getLimbCount(V.PC, 0) * 0.25);
 			}
 			if (hasAnyProstheticLimbs(V.PC)) {
 				costs += Math.trunc(getLimbCount(V.PC, 102) * 0.125);
-- 
GitLab