mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-28 20:27:46 +00:00
Fix const error on group gen func
This commit is contained in:
parent
806f235de4
commit
ad6f25cb30
2 changed files with 4 additions and 4 deletions
|
@ -37,7 +37,7 @@ T Core::Social::SocialMgr< T >::findGroupById( uint64_t groupId ) const
|
||||||
}
|
}
|
||||||
|
|
||||||
template< class T >
|
template< class T >
|
||||||
uint64_t Core::Social::SocialMgr< T >::generateGroupId() const
|
uint64_t Core::Social::SocialMgr< T >::generateGroupId()
|
||||||
{
|
{
|
||||||
m_lastGroupId++;
|
m_lastGroupId++;
|
||||||
return m_lastGroupId;
|
return m_lastGroupId;
|
||||||
|
@ -52,4 +52,4 @@ bool Core::Social::SocialMgr< T >::hasInvite( uint64_t playerId ) const
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ protected:
|
||||||
friend virtual void disband();
|
friend virtual void disband();
|
||||||
*/
|
*/
|
||||||
|
|
||||||
virtual uint64_t generateGroupId() const;
|
virtual uint64_t generateGroupId();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::map< uint64_t, T > m_groups;
|
std::map< uint64_t, T > m_groups;
|
||||||
|
@ -71,4 +71,4 @@ private:
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
#endif /* ! _SOCIALMGR_H */
|
#endif /* ! _SOCIALMGR_H */
|
||||||
|
|
Loading…
Add table
Reference in a new issue