summaryrefslogtreecommitdiff
path: root/magies.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-07 15:34:29 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-07 15:34:29 +0100
commit461a28bb608e117267431eac78b08d3d8a089c0c (patch)
tree7fbd7306399db6223b1f0440d1fea6eb1c03b507 /magies.c
parent5b6986f617c554ac27b57373be0b874807e2d49d (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/magies.c b/magies.c
index 2de216e..a52e8b4 100644
--- a/magies.c
+++ b/magies.c
@@ -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;