Fixed: Linux compilation error

This commit is contained in:
jachoo 2011-10-16 11:57:14 +02:00
parent 72251ff000
commit 875abb76db
2 changed files with 2 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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);