mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-06 02:37:47 +00:00
failing nullptr check should abort the function.
This commit is contained in:
parent
07f0bd31bd
commit
9d647e2bde
1 changed files with 3 additions and 0 deletions
|
@ -179,7 +179,10 @@ void FreeCompanyMgr::sendFcInviteList( Entity::Player& player )
|
||||||
// fill master character data
|
// fill master character data
|
||||||
auto masterCharacter = server.getPlayer( fc->getMasterId() );
|
auto masterCharacter = server.getPlayer( fc->getMasterId() );
|
||||||
if( !masterCharacter )
|
if( !masterCharacter )
|
||||||
|
{
|
||||||
Logger::error( "FreeCompanyMgr: Unable to look up master character#{}!", fc->getMasterId() );
|
Logger::error( "FreeCompanyMgr: Unable to look up master character#{}!", fc->getMasterId() );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
inviteListPacket->data().MasterCharacter.GrandCompanyID = masterCharacter->getGc();
|
inviteListPacket->data().MasterCharacter.GrandCompanyID = masterCharacter->getGc();
|
||||||
inviteListPacket->data().MasterCharacter.CharacterID = masterCharacter->getCharacterId();
|
inviteListPacket->data().MasterCharacter.CharacterID = masterCharacter->getCharacterId();
|
||||||
|
|
Loading…
Add table
Reference in a new issue