From 99d0e1004dd30fb4c2093059d72ab586c7b339cb Mon Sep 17 00:00:00 2001 From: HowChienLu <53228984+howard9199@users.noreply.github.com> Date: Fri, 3 Mar 2023 20:56:08 +0800 Subject: [PATCH] fix: CAT BALOU has no effect when player has barrel or mustang (#171) --- src/core/player.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/player.h b/src/core/player.h index cf4d359..df2233a 100644 --- a/src/core/player.h +++ b/src/core/player.h @@ -270,11 +270,11 @@ Card* computer_player_take(Game* game, i32 player_id, i32 target_id) { Player* target = game->players->get(game->players, target_id); usleep(1000 * 1000 / speed); if (El_Gringo_active != true) { - if (target->barrel && !player->barrel) { + if (target->barrel != NULL) { Card* x = target->barrel; target->barrel = NULL; return x; - } else if (target->mustang && !player->mustang) { + } else if (target->mustang != NULL) { Card* x = target->mustang; target->mustang = NULL; return x;