From 3010b8ab2e758ef8733947559512f71fed750951 Mon Sep 17 00:00:00 2001 From: Andre Leiradella Date: Sat, 26 Aug 2017 12:53:10 +0100 Subject: [PATCH] Fixed Add/Sub source conditions --- cheevos/cheevos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cheevos/cheevos.c b/cheevos/cheevos.c index ee089d667a..06279cd397 100644 --- a/cheevos/cheevos.c +++ b/cheevos/cheevos.c @@ -1929,14 +1929,14 @@ static int cheevos_test_cond_set(const cheevos_condset_t *condset, if (cond->type == CHEEVOS_COND_TYPE_ADD_SOURCE) { cheevos_locals.add_buffer += cheevos_get_var_value(&cond->source); - set_valid = 1; + set_valid &= 1; continue; } if (cond->type == CHEEVOS_COND_TYPE_SUB_SOURCE) { cheevos_locals.add_buffer -= cheevos_get_var_value(&cond->source); - set_valid = 1; + set_valid &= 1; continue; }