Worked these changes into the client & server (read more)

The changes were fairly easy, and I was actually able to find and fix an
out-of-sequence bug: The destructors for the AccountManager and the
CharacterManager were using SQL code after the call to SQLite3_close_v2(),
so I added and called UnloadAll() for both of them.
This commit is contained in:
Kayne Ruse
2014-06-14 03:38:13 +10:00
parent 793737e1ed
commit b418ad713d
10 changed files with 51 additions and 36 deletions
+4 -2
View File
@@ -30,8 +30,8 @@
class AccountManager {
public:
AccountManager();
~AccountManager();
AccountManager() = default;
~AccountManager() { UnloadAll(); };
//public access methods
int CreateAccount(std::string username, int clientIndex);
@@ -40,6 +40,8 @@ public:
void UnloadAccount(int uid);
void DeleteAccount(int uid);
void UnloadAll();
//accessors and mutators
AccountData* GetAccount(int uid);
std::map<int, AccountData>* GetContainer();