Fixed Add/Sub source conditions

This commit is contained in:
Andre Leiradella 2017-08-26 12:53:10 +01:00
parent 7846f0312b
commit 3010b8ab2e

View File

@ -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;
}