From cb91a6e40c2de6687c198f82bcd6444c96e98ed0 Mon Sep 17 00:00:00 2001 From: "jean.chalard" Date: Mon, 15 Jun 2009 00:56:30 +0000 Subject: [PATCH] J : * Match the .cpp --- projects/mtg/include/Effects.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/mtg/include/Effects.h b/projects/mtg/include/Effects.h index 479798fca..4b20ec095 100644 --- a/projects/mtg/include/Effects.h +++ b/projects/mtg/include/Effects.h @@ -5,7 +5,9 @@ class Effect : public JGuiObject { - Effect(int id) : JGuiObject(id) {}; + static int id_counter; + public: + Effect() : JGuiObject(++id_counter) {}; }; #endif // _EFFECTS_H_