X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAccount.h;h=f9bc5e1654940c614acfa9cda7b40309dee66534;hb=e08372a2095837a0b951ccb68c3499ef67c1a827;hp=8e435025e3d6f04b1bd88c7a5ab5d2771c953915;hpb=8a32dc9e4e1011b10f009e999d7d008aa2711d8a;p=lugaru.git diff --git a/Source/Account.h b/Source/Account.h index 8e43502..f9bc5e1 100644 --- a/Source/Account.h +++ b/Source/Account.h @@ -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);