From 2b0e7310eec1c32e51c35952cfa387231c098303 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 7 Jan 2015 13:44:10 +0100 Subject: fixed invalid usage of = instead of == thanks to compiler, we wre able to detect an usage of operator= instead of operator== which leads to undefined behaviour in the program. fixed ty replacing it by operator== Signed-off-by: Olivier Gayot --- jouer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'jouer.c') diff --git a/jouer.c b/jouer.c index c649874..4268caf 100644 --- a/jouer.c +++ b/jouer.c @@ -101,12 +101,12 @@ int Fjouer (SURFACES *surfaces, POSITIONS *positions, PERSONNAGES persos[],ENNEM } else if(Vtour==ENNEMI) // sinon si c'est le cpu qui joue { - while(ennemis[Vtourennemi].etat==MORT) - { - if(Vtourennemi