]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Account.h
Replaced all uses of Account::active outside of Account by call to active() method
[lugaru.git] / Source / Account.h
index 8e435025e3d6f04b1bd88c7a5ab5d2771c953915..f9bc5e1654940c614acfa9cda7b40309dee66534 100644 (file)
@@ -51,7 +51,9 @@ public:
     static void saveFile(std::string filename);
     static int indice(Account* a);
 
-    static Account* active;
+    static bool hasActive() { return (_active != nullptr); }
+    static Account& active() { return *_active; }
+    static Account* _active;
 
     void endGame();
     void winCampaignLevel(int choice, float score, float time);