]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameInitDispose.cpp
Moved Account::active in Account class. Maybe it should be changed for a method and...
[lugaru.git] / Source / GameInitDispose.cpp
index 2103c2184cb570d54dd3fe00c09498ca071e3c47..e08ff8efc712823c24902ddff34dba64fb44f09b 100644 (file)
@@ -79,11 +79,11 @@ void Dispose()
     LOGFUNC;
 
     if (Game::endgame == 2) {
-        Game::accountactive->endGame();
+        Account::active->endGame();
         Game::endgame = 0;
     }
 
-    Account::saveFile(Folders::getUserDataPath()+"/users", Game::accountactive);
+    Account::saveFile(Folders::getUserDataPath()+"/users");
 
     //textures.clear();
 
@@ -458,7 +458,7 @@ void Game::InitGame()
 
     numchallengelevels = 14;
 
-    accountactive = Account::loadFile(Folders::getUserDataPath()+"/users");
+    Account::active = Account::loadFile(Folders::getUserDataPath()+"/users");
 
     whichjointstartarray[0] = righthip;
     whichjointendarray[0] = rightfoot;