Fixed: getMission returns a mission instead of NULL
--HG-- branch : develop
This commit is contained in:
parent
ec6ffe547c
commit
1a338b3462
1 changed files with 16 additions and 15 deletions
|
@ -80,9 +80,8 @@ void CAdminProperties::updateCSRJournal( CCharacter * user, CMission * mission,u
|
|||
|
||||
CMission* CAdminProperties::getMission(uint indexInJournal) const
|
||||
{
|
||||
/// todo mission
|
||||
/*
|
||||
if (!_Data) return NULL;
|
||||
|
||||
CCharacter *user = PlayerManager.getChar(_Data->MissionUser);
|
||||
if (!user)
|
||||
return NULL;
|
||||
|
@ -91,6 +90,7 @@ CMission * CAdminProperties::getMission( uint indexInJournal ) const
|
|||
if (indexInJournal < user->getMissions().size())
|
||||
return (CMission*)user->getMissions()[indexInJournal];
|
||||
|
||||
/*
|
||||
indexInJournal -= MaxSoloMissionCount;
|
||||
CTeam * team = TeamManager.getTeam( user->getTeamId() );
|
||||
if (team)
|
||||
|
@ -98,6 +98,7 @@ CMission * CAdminProperties::getMission( uint indexInJournal ) const
|
|||
if ( indexInJournal < team->getMissions().size() )
|
||||
return (CMission*) team->getMissions()[indexInJournal];
|
||||
}
|
||||
|
||||
indexInJournal-= ( MaxGroupMissionCount);
|
||||
CGuild * guild = user->getGuild();
|
||||
if (guild )
|
||||
|
|
Loading…
Reference in a new issue