From f894056e74278b64000eb268d3727321443b3548 Mon Sep 17 00:00:00 2001 From: "wrenczes@gmail.com" Date: Fri, 10 Dec 2010 10:25:35 +0000 Subject: [PATCH] Fixed the order of initializers to make the psp warnings go away. (Stupid gcc, I don't understand why it cares about the order of initializers in the first place...) --- projects/mtg/include/AIPlayer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/mtg/include/AIPlayer.h b/projects/mtg/include/AIPlayer.h index 89e12d16f..3faf033d6 100644 --- a/projects/mtg/include/AIPlayer.h +++ b/projects/mtg/include/AIPlayer.h @@ -36,19 +36,19 @@ public: MTGCardInstance * target; // TODO Improve AIAction(MTGAbility * a, MTGCardInstance * c, MTGCardInstance * t = NULL) - : ability(a),click(c),target(t), player(NULL), efficiency(-1) + : efficiency(-1), ability(a), player(NULL), click(c), target(t) { id = currentId++; }; AIAction(MTGCardInstance * c, MTGCardInstance * t = NULL) - : click(c),target(t), player(NULL), ability(NULL), efficiency(-1) + : efficiency(-1), ability(NULL), player(NULL), click(c), target(t) { id = currentId++; }; AIAction(Player * p) - : player(p), ability(NULL), target(NULL), click(NULL), efficiency(-1) + : efficiency(-1), ability(NULL), player(p), click(NULL), target(NULL) { };