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_