- //LMA: We get the exact Clan Points amount through mysql database
- UINT CWorldServer::getClanPoints(int clanid)
- {
- UINT nb_points=0;
- MYSQL_RES *result = GServer->DB->QStore("SELECT cp FROM list_clan where id=%i", clanid);
- if(result==NULL){
- GServer->DB->QFree();
- return 0;
- }
- if(mysql_num_rows(result)!=1)
- {
- GServer->DB->QFree();
- return 0;
- }
- else
- {
- MYSQL_ROW row = mysql_fetch_row(result);
- nb_points= atoi(row[0]);
- }
- GServer->DB->QFree( );
- return nb_points;
- }
a few minutes ago got a crash again. And it was because there was a DB-QFree() missing again.
So go in you worldserver, look for the file extrafunctions.cpp
And go to the function getClanPoints and replace it by this one :