Rearranged the server-side object hierarchy (read more)
This has been a long-running problem for days, but I've finally implemented a correctly working hierarchy between the ClientData, AccountData and CharacterData objects: CharacterData -> AccountData -> ClientData There doesn't seem to be any issues with it right now, touch wood.
This commit is contained in:
@@ -110,6 +110,7 @@ int ServerApplication::LoadCharacter(int owner, std::string handle, std::string
|
||||
CharacterData& newChar = characterMap[uid];
|
||||
|
||||
//metadata
|
||||
newChar.owner = owner;
|
||||
newChar.handle = reinterpret_cast<const char*>(sqlite3_column_text(statement, 2));
|
||||
newChar.avatar = reinterpret_cast<const char*>(sqlite3_column_text(statement, 3));
|
||||
//Don't cache the birth
|
||||
|
||||
Reference in New Issue
Block a user