]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameInitDispose.cpp
Replaced all uses of Account::active outside of Account by call to active() method
[lugaru.git] / Source / GameInitDispose.cpp
index e08ff8efc712823c24902ddff34dba64fb44f09b..d1f7b9d5450ed553140db8d78f67667b3802f3c2 100644 (file)
@@ -79,7 +79,7 @@ void Dispose()
     LOGFUNC;
 
     if (Game::endgame == 2) {
-        Account::active->endGame();
+        Account::active().endGame();
         Game::endgame = 0;
     }
 
@@ -458,7 +458,7 @@ void Game::InitGame()
 
     numchallengelevels = 14;
 
-    Account::active = Account::loadFile(Folders::getUserDataPath()+"/users");
+    Account::loadFile(Folders::getUserDataPath()+"/users");
 
     whichjointstartarray[0] = righthip;
     whichjointendarray[0] = rightfoot;