]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Account.h
no more 5000 int array, a nice vector instead.
[lugaru.git] / Source / Account.h
index 5acbe6a74b517e5dbffa002dd2504e366bf3a002..24b856fbfb2c513b13df1a11964bd1f882ae43f4 100644 (file)
@@ -47,7 +47,7 @@ class Account {
                void setDifficulty(int i) { difficulty = i; };
                const char* getName() { return name.c_str(); };
                float getCampaignScore() { return campaignscore; };
-               int getCampaignChoicesMade() { return campaignchoicesmade; };
+               int getCampaignChoicesMade() { return campaignchoices.size(); };
                int getCampaignChoice(int i) { return campaignchoices[i]; };
                void setCampaignScore(int s) {
                        campaignscore=s;
@@ -80,8 +80,7 @@ class Account {
                float campaignfasttime;
                float campaignscore;
                float campaigntime;
-               int campaignchoicesmade;
-               int campaignchoices[5000]; // should really disappear. I'd use a vector or something like that.
+               std::vector<int> campaignchoices;
        
        //statics
                static std::vector<Account*> accounts;