J :
* Add Linux Makfile (preliminary version) * Fix a signed/unsigned bug
This commit is contained in:
@@ -64,9 +64,9 @@ void AIStats::updateStats(){
|
||||
save();
|
||||
}
|
||||
|
||||
bool AIStats::isInTop(MTGCardInstance * card,int max, bool tooSmallCountsForTrue ){
|
||||
bool AIStats::isInTop(MTGCardInstance * card, unsigned int max, bool tooSmallCountsForTrue ){
|
||||
if (stats.size()<max) return tooSmallCountsForTrue;
|
||||
int n = 0;
|
||||
unsigned int n = 0;
|
||||
MTGCard * source = card->model;
|
||||
int id = source->getMTGId();
|
||||
list<AIStat *>::iterator it;
|
||||
@@ -126,4 +126,4 @@ void AIStats::save(){
|
||||
file.close();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user