Changeset 205

Show
Ignore:
Timestamp:
10/29/06 20:53:56 (2 years ago)
Author:
ug
Message:

Fixed small bug with playerList.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 06/libkombilo/search.cc

    r204 r205  
    39363936 
    39373937string GameList::plEntry(int i) { 
    3938   if (i < 0 || i >= pl.size()) return ""; 
     3938  if (i < 0 || i >= (int)pl.size()) return ""; 
    39393939  else return pl[i]; 
    39403940} 
     
    39483948void GameList::readPlayersList() throw(DBError) { 
    39493949  if (pl.size()) pl = vector<string>(); 
    3950   int rc = sqlite3_exec(db, "select p from (select pw p from games union select pb p from games) order by lower(p)", rpl_callback, &pl, 0); 
    3951   if (rc != SQLITE_OK) throw DBError(); 
     3950  sqlite3_exec(db, "select p from (select pw p from games union select pb p from games) order by lower(p)", rpl_callback, &pl, 0); 
     3951  // we ignore possible errors, since the table might not yet exist 
    39523952} 
    39533953