1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-06-05 23:57:46 +00:00

fix travis build

This commit is contained in:
Tahir Akhlaq 2018-08-17 14:26:08 +01:00
parent 5ba94f0e52
commit 4829e235d3
2 changed files with 9 additions and 8 deletions

View file

@ -413,17 +413,17 @@ void Core::Network::GameConnection::socialListHandler( const Core::Network::Pack
auto listPacket = makeZonePacket< FFXIVIpcSocialList >( player.getId() );
// todo: use socialmgr
listPacket->data().type = 2;
listPacket->data().sequence = count;
int32_t entrysizes = sizeof( listPacket->data().entries );
memset( listPacket->data().entries, 0, sizeof( listPacket->data().entries ) );
//listPacket->data().entries[0].bytes[2] = player.getCurrentZone()->getTerritoryId();
//listPacket->data().entries[0].bytes[3] = 0x80;
//listPacket->data().entries[0].bytes[4] = 0x02;
//listPacket->data().entries[0].bytes[6] = 0x3B;
//listPacket->data().entries[0].bytes[11] = 0x10;
// todo: store language in db search info or something
listPacket->data().entries[0].clientLanguage = Common::ClientLanguage::English; // todo: read from memory
listPacket->data().entries[0].knownLanguages = Common::ClientLanguage::English | Common::ClientLanguage::German; // todo: read from memory
listPacket->data().entries[0].classJob = player.getClass();
listPacket->data().entries[0].contentId = player.getContentId();
listPacket->data().entries[0].level = player.getLevel();
@ -452,8 +452,8 @@ void Core::Network::GameConnection::socialListHandler( const Core::Network::Pack
uint16_t i = 0;
auto test = g_fw.get< Social::SocialMgr< Social::FriendList > >();
auto playerFriendsList = test->findGroupById( player.getContentId() );
auto playerFriendsList = test->findGroupById( player.getContentId() );
// todo: move this garbage else fucking where
for ( auto member : playerFriendsList->getMembers() )
{
@ -470,6 +470,7 @@ void Core::Network::GameConnection::socialListHandler( const Core::Network::Pack
i++;
}
queueOutPacket( listPacket );
}

View file

@ -76,7 +76,7 @@ public:
uint64_t getId() const;
/*! get total size of group (members + invites) */
uint32_t Group::getTotalSize() const;
uint32_t getTotalSize() const;
/*! check if group has member */
bool hasMember( uint64_t contentId ) const;