Fixed: Linux compilation error
This commit is contained in:
parent
72251ff000
commit
875abb76db
@ -56,7 +56,7 @@ u16 ClansManager::clanId(const std::string& name) const
|
|||||||
const std::string& ClansManager::clanName(u16 id) const
|
const std::string& ClansManager::clanName(u16 id) const
|
||||||
{
|
{
|
||||||
std::map<u16,std::string>::const_iterator it = m_idName.find(id);
|
std::map<u16,std::string>::const_iterator it = m_idName.find(id);
|
||||||
if(it==m_idName.end()) throw std::exception("Clan doesn't exist"); //TODO: some other exception
|
if(it==m_idName.end()) throw BaseException("Clan doesn't exist");
|
||||||
return it->second;
|
return it->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4029,7 +4029,7 @@ void writeClanIdName(std::ostringstream& os, u16 id, const std::string& name){
|
|||||||
u8 clan name lenght
|
u8 clan name lenght
|
||||||
string clan name
|
string clan name
|
||||||
*/
|
*/
|
||||||
if(name.length() > 0xFFFF) throw std::exception("too long clan name"); //exception?
|
if(name.length() > 0xFFFF) throw BaseException("too long clan name");
|
||||||
|
|
||||||
writeU16(os,id);
|
writeU16(os,id);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user