Changeset 207

Show
Ignore:
Timestamp:
11/27/06 20:57:44 (1 year ago)
Author:
ug
Message:

Fixed two bugs when creating db's without adding games.

Files:

Legend:

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

    r206 r207  
    33663366      unsigned int p = 0; 
    33673367      unsigned int pn = bsizes_str.find(",",p); 
    3368       while (pn != string::npos) { 
     3368      while (pn > p && pn != string::npos) { 
    33693369        boardsizes.push_back(atoi(bsizes_str.substr(p, pn-p).c_str())); 
    33703370        p = pn+1; 
     
    35343534  if (currentList) delete currentList; 
    35353535  if (oldList) delete oldList; 
    3536   for(int i=0; i<20; i++)  
     3536  for(int i=0; i<20*boardsizes.size(); i++)  
    35373537    if (algo_ps[i]) delete algo_ps[i]; 
    35383538  if (db) sqlite3_close(db);