diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-07 15:34:29 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-07 15:34:29 +0100 |
commit | 461a28bb608e117267431eac78b08d3d8a089c0c (patch) | |
tree | 7fbd7306399db6223b1f0440d1fea6eb1c03b507 /magies.c | |
parent | 5b6986f617c554ac27b57373be0b874807e2d49d (diff) |
do not pass a pointer to standard type when a copy is possible
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'magies.c')
-rw-r--r-- | magies.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -45,7 +45,7 @@ int Fmagieelement (SURFACES *surfaces,POSITIONS *positions,PERSONNAGES persos[], case SDLK_RETURN: case SDLK_f: continuer=0; - max=Fcalculerdegats(persos,Vtourallie,&min,ennemis,selection,clan,TYPE_MAGIE); + max=Fcalculerdegats(persos, *Vtourallie,&min,ennemis,selection,clan,TYPE_MAGIE); degats=(rand()%(max-min+1))+min; if(degats<0) degats=0; |