summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/koopatlas/shop.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/koopatlas/shop.cpp b/src/koopatlas/shop.cpp
index 5dc1937..0df2efd 100644
--- a/src/koopatlas/shop.cpp
+++ b/src/koopatlas/shop.cpp
@@ -611,9 +611,11 @@ void dWMShop_c::buyItem(int item) {
// Apply lives to everyone
for (int i = 0; i < 4; i++) {
- Player_Lives[i] += appliedItems[(int)ONE_UP];
- if (Player_Lives[i] > 99)
- Player_Lives[i] = 99;
+ if (Player_Active[i]) {
+ Player_Lives[i] += appliedItems[(int)ONE_UP];
+ if (Player_Lives[i] > 99)
+ Player_Lives[i] = 99;
+ }
}
if (appliedItems[(int)ONE_UP] > 0)